]> granicus.if.org Git - libevent/commitdiff
Fix for a677b72bd6d9d378daf9775966aa8ca574e26e67
authorNick Mathewson <nickm@torproject.org>
Thu, 18 Sep 2014 16:12:36 +0000 (12:12 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 18 Sep 2014 16:12:36 +0000 (12:12 -0400)
test/test-time.c

index 5c8593b1385dc3a2cdc729ce0eff8bb4b03f3623..fd4de7b6566138f3004827ff177e9a979c840154 100644 (file)
@@ -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