From 364c110687a7fc3e1fa0c6c197c1d0d937ba9131 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 18 Sep 2014 12:12:36 -0400 Subject: [PATCH] Fix for a677b72bd6d9d378daf9775966aa8ca574e26e67 --- test/test-time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.1