(empth_sleep) [_WIN32]: Remove a change to the random seeding
that accidently got committed in rev 1.65. Was incorrect in rev 1.66. (empth_sleep) [_WIN32]: Switch srand() to srandom() to be consistent with the rest of the empire code.
This commit is contained in:
parent
f449c3f8a4
commit
0627deae05
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ empth_threadMain(void *pvData)
|
|||
* In WIN32, each thread has seed
|
||||
*/
|
||||
time(&now);
|
||||
srand( ^ (unsigned)pThread);
|
||||
srandom(now ^ (unsigned)pThread);
|
||||
|
||||
/* Switch to this thread context */
|
||||
loc_RunThisThread(NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue