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/Handle_Set_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/Handle_Set_Test.cpp')
-rw-r--r-- | ACE/tests/Handle_Set_Test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/tests/Handle_Set_Test.cpp b/ACE/tests/Handle_Set_Test.cpp index a9628aab6f5..27ecc58ee65 100644 --- a/ACE/tests/Handle_Set_Test.cpp +++ b/ACE/tests/Handle_Set_Test.cpp @@ -29,12 +29,12 @@ test_duplicates (size_t count) ACE_Handle_Set handle_set; - ACE_OS::srand ((u_int) ACE_OS::time (0L)); + u_int seed = (u_int) ACE_OS::time (0); for (size_t i = 0; i < count; i++) { size_t handle = - static_cast<size_t> (ACE_OS::rand () % ACE_Handle_Set::MAXSIZE); + static_cast<size_t> (ACE_OS::rand_r (&seed) % ACE_Handle_Set::MAXSIZE); if (ACE_ODD (handle)) { |