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:
parent
1d699e8751
commit
3e94b2a0ba
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue