summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test-time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-time.c b/test/test-time.c
index 5c8593b1..fd4de7b6 100644
--- a/test/test-time.c
+++ b/test/test-time.c
@@ -54,7 +54,7 @@ struct evutil_weakrand_state weakrand_state;
static int
rand_int(int n)
{
- return evutil_weakrand_(&weakrand_state);
+ return evutil_weakrand_(&weakrand_state) % n;
}
static void