Removed srand() call from pjlib initialization to let application supply the random seed

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1567 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2007-11-10 02:23:09 +00:00
parent 1d699e8751
commit 3e94b2a0ba
2 changed files with 4 additions and 2 deletions

View File

@ -146,7 +146,8 @@ PJ_DEF(pj_status_t) pj_init(void)
return rc;
/* Init random seed. */
pj_srand( clock() );
/* Or probably not. Let application in charge of this */
/* pj_srand( clock() ); */
/* Startup GUID. */
guid.ptr = dummy_guid;

View File

@ -141,7 +141,8 @@ PJ_DEF(pj_status_t) pj_init(void)
}
/* Init random seed. */
pj_srand( GetCurrentProcessId() );
/* Or probably not. Let application in charge of this */
/* pj_srand( GetCurrentProcessId() ); */
/* Startup GUID. */
guid.ptr = dummy_guid;