chiark
/
gitweb
/
~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rand/noise.c (noise_timer): Actually update previous time.
[catacomb]
/
rand
/
noise.c
diff --git
a/rand/noise.c
b/rand/noise.c
index 00f036a8469ac50e6e4a16d95094b7dcf65023a0..7eb4c712932a0f9c7cc14e089d6c1d36ebf85086 100644
(file)
--- 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);