]> git.pond.sub.org Git - empserver/commitdiff
(empth_sleep) [_WIN32]: Remove a change to the random seeding
authorRon Koenderink <rkoenderink@yahoo.ca>
Sat, 20 Oct 2007 12:59:49 +0000 (12:59 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sat, 20 Oct 2007 12:59:49 +0000 (12:59 +0000)
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

index 73a2cecc51c1e2a9678423399a1adb6acadec6a4..06c55b2847912f69a6dd3d3b63a3b6719065d19c 100644 (file)
@@ -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);