X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/6c83f206dee6c7c646bf50105b41de858b5242d6..abdc0d5fcaa72bef72d1dc49290c1db8d68229f3:/rand/rand.c diff --git a/rand/rand.c b/rand/rand.c index e2211d54..01e6422a 100644 --- 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;