Changeset 33 in chevmsgr for trunk/msg.hpp


Ignore:
Timestamp:
12/09/15 06:47:21 (8 years ago)
Author:
cheese
Message:
  1. 클라이언트 UI ID/PW 입력 안하면 죽는 문제 수정
  2. UI 종료 함수 exit로 수정
  3. 그룹챗 인덱스 변수 형 때문에 나오는 warning 수정
  4. toOpenSession 함수 가끔 죽는 문제 수정
  5. generateRandom()에서 time()하던거 rand()로 수정
  6. sms 전송 url 및 sms 코드 생성 로직 대폭 수정 (주석 참고)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/msg.hpp

    r31 r33  
    175175static cf::bin generateRandom()
    176176{
    177     int t = (int)time(NULL);
     177    srand((unsigned int)time(NULL));
     178    int t = rand();
    178179
    179180    cf::bin b;
Note: See TracChangeset for help on using the changeset viewer.