From 0627deae05f763ddd2b5207babfe274d02a123c8 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Sat, 20 Oct 2007 12:59:49 +0000 Subject: [PATCH] (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. --- src/lib/empthread/ntthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/empthread/ntthread.c b/src/lib/empthread/ntthread.c index 73a2cecc..06c55b28 100644 --- a/src/lib/empthread/ntthread.c +++ b/src/lib/empthread/ntthread.c @@ -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);