diff options
author | Adam Mitz <mitza@ociweb.com> | 2015-11-06 17:07:11 -0600 |
---|---|---|
committer | Adam Mitz <mitza@ociweb.com> | 2015-11-06 17:07:11 -0600 |
commit | ac5e1702c9f9bee9f1f7bfce8c1a6f3847ea6b4b (patch) | |
tree | 0e70d1f51c39e688a05a6cdc2af58408222e4a0d /ACE/tests/Thread_Mutex_Test.cpp | |
parent | 5272b5b81f92c298cb998b5bb0b0dbca3e7f29fe (diff) | |
download | ATCD-ac5e1702c9f9bee9f1f7bfce8c1a6f3847ea6b4b.tar.gz |
Merged branch ace-face-safety (FACE Safety Profile import from OCITAO).
Diffstat (limited to 'ACE/tests/Thread_Mutex_Test.cpp')
-rw-r--r-- | ACE/tests/Thread_Mutex_Test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/tests/Thread_Mutex_Test.cpp b/ACE/tests/Thread_Mutex_Test.cpp index 5c4010356f2..183009e4d14 100644 --- a/ACE/tests/Thread_Mutex_Test.cpp +++ b/ACE/tests/Thread_Mutex_Test.cpp @@ -44,7 +44,7 @@ test (void *args) { ACE_TEST_MUTEX *mutex = (ACE_TEST_MUTEX *) args; ACE_UNUSED_ARG (mutex); // Suppress ghs warning about unused local "mutex". - ACE_OS::srand ((u_int) ACE_OS::time (0)); + u_int seed = (u_int) ACE_OS::time (0); for (size_t i = 0; i < ACE_MAX_ITERATIONS / 2; i++) { @@ -112,7 +112,7 @@ test (void *args) // Sleep for a random amount of time between 0 and 2 seconds. // Note that it's ok to use rand() here because we are running // within the critical section defined by the Thread_Mutex. - ACE_OS::sleep (ACE_OS::rand () % 2); + ACE_OS::sleep (ACE_OS::rand_r (&seed) % 2); result = mutex->release (); ACE_TEST_ASSERT (result == 0); |