summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-09-18 12:12:36 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-18 12:12:36 -0400
commit364c110687a7fc3e1fa0c6c197c1d0d937ba9131 (patch)
tree7480565a841dba14adc5c553d2c2b875f2d07440
parentfb57b8badce60ecaf07bd1b562fa660dd1372e7d (diff)
downloadlibevent-364c110687a7fc3e1fa0c6c197c1d0d937ba9131.tar.gz
Fix for a677b72bd6d9d378daf9775966aa8ca574e26e67
-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