From: Mark Wooding Date: Sat, 13 Jul 2013 15:34:40 +0000 (+0100) Subject: rand/noise.c (noise_timer): Actually update previous time. X-Git-Tag: 2.1.7~19 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb/commitdiff_plain/fc8f52d72cb5d0296e85faf6fb834cd7bf10d7bf?ds=sidebyside rand/noise.c (noise_timer): Actually update previous time. A long-standing bug. Oops. --- 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);