~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rand/rand.c (rand_gate): Evolve r->ibits in a more sensible manner.
[catacomb]
/
rand
/
rand.c
diff --git
a/rand/rand.c
b/rand/rand.c
index
e2211d5
..
01e6422
100644
(file)
--- a/
rand/rand.c
+++ b/
rand/rand.c
@@
-342,7
+342,7
@@
void rand_gate(rand_pool *r)
r->o = RAND_SECSZ;
r->obits += r->ibits;
if (r->obits > RAND_OBITS) {
- r->ibits = r->obits -
r->ibits
;
+ r->ibits = r->obits -
RAND_OBITS
;
r->obits = RAND_OBITS;
} else
r->ibits = 0;