(empth_sleep) [_WIN32]: Remove a change to the random seeding
that accidently got committed in rev 1.65.
This commit is contained in:
parent
274c3d3a36
commit
f449c3f8a4
1 changed files with 4 additions and 4 deletions
|
@ -326,6 +326,8 @@ loc_Exit_Handler(DWORD fdwCtrlType)
|
||||||
static void
|
static void
|
||||||
empth_threadMain(void *pvData)
|
empth_threadMain(void *pvData)
|
||||||
{
|
{
|
||||||
|
time_t now;
|
||||||
|
|
||||||
empth_t *pThread = pvData;
|
empth_t *pThread = pvData;
|
||||||
|
|
||||||
/* Out of here... */
|
/* Out of here... */
|
||||||
|
@ -345,10 +347,8 @@ empth_threadMain(void *pvData)
|
||||||
* seed the rand() function
|
* seed the rand() function
|
||||||
* In WIN32, each thread has seed
|
* In WIN32, each thread has seed
|
||||||
*/
|
*/
|
||||||
if (rnd_seed.set)
|
time(&now);
|
||||||
srand(rnd_seed.seed);
|
srand( ^ (unsigned)pThread);
|
||||||
else
|
|
||||||
srand(time(NULL) ^ (unsigned)pThread);
|
|
||||||
|
|
||||||
/* Switch to this thread context */
|
/* Switch to this thread context */
|
||||||
loc_RunThisThread(NULL);
|
loc_RunThisThread(NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue