Changeset 1567


Ignore:
Timestamp:
Nov 10, 2007 2:23:09 AM (12 years ago)
Author:
bennylp
Message:

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

Location:
pjproject/trunk/pjlib/src/pj
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/os_core_unix.c

    r1304 r1567  
    147147     
    148148    /* Init random seed. */ 
    149     pj_srand( clock() ); 
     149    /* Or probably not. Let application in charge of this */ 
     150    /* pj_srand( clock() ); */ 
    150151 
    151152    /* Startup GUID. */ 
  • pjproject/trunk/pjlib/src/pj/os_core_win32.c

    r1046 r1567  
    142142     
    143143    /* Init random seed. */ 
    144     pj_srand( GetCurrentProcessId() ); 
     144    /* Or probably not. Let application in charge of this */ 
     145    /* pj_srand( GetCurrentProcessId() ); */ 
    145146 
    146147    /* Startup GUID. */ 
Note: See TracChangeset for help on using the changeset viewer.