summaryrefslogtreecommitdiff
path: root/test/test-ratelim.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-ratelim.c')
-rw-r--r--test/test-ratelim.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test-ratelim.c b/test/test-ratelim.c
index d252e946..845e7504 100644
--- a/test/test-ratelim.c
+++ b/test/test-ratelim.c
@@ -312,7 +312,11 @@ main(int argc, char **argv)
cfg_connlimit *= ratio;
cfg_grouplimit *= ratio;
- srandom(time(NULL));
+ {
+ struct timeval tv;
+ evutil_gettimeofday(&tv, NULL);
+ srandom(tv.tv_usec);
+ }
evthread_enable_lock_debuging();