From dcb0e9d4be21cac28319300d0c66526aae3ec75e Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Fri, 29 Apr 2005 16:47:14 +0000 Subject: Added call to srand48() --- cpp/src/IceUtil/Thread.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpp/src/IceUtil/Thread.cpp') diff --git a/cpp/src/IceUtil/Thread.cpp b/cpp/src/IceUtil/Thread.cpp index 9a4897558b5..1e7c43489e2 100644 --- a/cpp/src/IceUtil/Thread.cpp +++ b/cpp/src/IceUtil/Thread.cpp @@ -189,6 +189,9 @@ startHook(void* arg) // unsigned int seed = static_cast(IceUtil::Time::now().toMicroSeconds()); srand(seed); +#ifndef _WIN32 + srand48(seed); +#endif // // Ensure that the thread doesn't go away until run() has -- cgit v1.2.3