diff options
Diffstat (limited to 'cpp/src/Ice/Instance.cpp')
-rw-r--r-- | cpp/src/Ice/Instance.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/Ice/Instance.cpp b/cpp/src/Ice/Instance.cpp index d99564a7a72..9ad9cff4fde 100644 --- a/cpp/src/Ice/Instance.cpp +++ b/cpp/src/Ice/Instance.cpp @@ -388,7 +388,9 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, int& argc, if(_globalStateCounter == 1) // Only on first call { - srand(static_cast<timeval>(IceUtil::Time::now()).tv_usec); + unsigned int seed = + static_cast<unsigned int>(IceUtil::Time::now().toMicroSeconds()); + srand(seed); if(_properties->getPropertyAsInt("Ice.NullHandleAbort") > 0) { |