From fc8f52d72cb5d0296e85faf6fb834cd7bf10d7bf Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 13 Jul 2013 16:34:40 +0100 Subject: [PATCH] rand/noise.c (noise_timer): Actually update previous time. A long-standing bug. Oops. --- rand/noise.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rand/noise.c b/rand/noise.c index 00f036a8..7eb4c712 100644 --- a/rand/noise.c +++ b/rand/noise.c @@ -113,6 +113,7 @@ static int timer(rand_pool *r, struct timeval *tv) x = tv->tv_usec + MILLION * tv->tv_sec; d = x ^ noise_last; dd = d ^ noise_diff; + noise_last = x; noise_diff = d; de = bitcount(d); dde = bitcount(dd); -- 2.11.0