diff options
author | Matthew Newhook <matthew@zeroc.com> | 2007-01-30 02:08:09 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2007-01-30 02:08:09 +0000 |
commit | cfed8a79927ba81c3b068b6ead569edc83bdbb40 (patch) | |
tree | 2ed16c4657ae916c732adb7e25710afe62351a2b /cpp | |
parent | Added IceStorm stress test. (diff) | |
download | ice-cfed8a79927ba81c3b068b6ead569edc83bdbb40.tar.bz2 ice-cfed8a79927ba81c3b068b6ead569edc83bdbb40.tar.xz ice-cfed8a79927ba81c3b068b6ead569edc83bdbb40.zip |
stress test windows fix.
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/test/IceStorm/stress/Subscriber.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/test/IceStorm/stress/Subscriber.cpp b/cpp/test/IceStorm/stress/Subscriber.cpp index 81cc980470e..dba8231d209 100644 --- a/cpp/test/IceStorm/stress/Subscriber.cpp +++ b/cpp/test/IceStorm/stress/Subscriber.cpp @@ -13,6 +13,7 @@ #include <IceUtil/Options.h> #include <IceUtil/Thread.h> #include <IceUtil/Time.h> +#include <IceUtil/Random.h> #include <Event.h> #include <TestCommon.h> @@ -147,7 +148,7 @@ public: Lock sync(*this); // Randomly close the connection. - if(!_done && (random() % 10 == 1 || ++_count == _total)) + if(!_done && (IceUtil::random(10) == 1 || ++_count == _total)) { _done = true; current.con->close(true); |