From ad61b752ac165ce09fe1ed766e475286d36fbf18 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 28 Dec 2011 09:00:35 -0800 Subject: * match.c (LOG_MATCH): Use < in format directive instead of -. * rand.c (random): Add back missing declaration. --- rand.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rand.c') diff --git a/rand.c b/rand.c index 02c42c18..b28398ba 100644 --- a/rand.c +++ b/rand.c @@ -218,8 +218,9 @@ val random(val state, val modulus) goto invalid; for (;;) { cnum out = 0; - #if SIZEOF_PTR >= 8 + int i; + for (i = 0; i < rands_needed; i++) { rand32_t rnd = rand32(r); out <<= 32; -- cgit v1.2.3