From: Mark Wooding Date: Fri, 15 Nov 2019 19:37:29 +0000 (+0000) Subject: rand/lcrand.c: Swap flags and max so generator not advertised as strong. X-Git-Tag: 2.4.5~13 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/e06c916564213a19a0df27c1985b9875c85f8150 rand/lcrand.c: Swap flags and max so generator not advertised as strong. Oh, dear. This isn't good. Even worse, this means that `max' was advertised as zero, so the outputs have been biased. --- diff --git a/rand/lcrand.c b/rand/lcrand.c index d8c4a378..1c76f65b 100644 --- a/rand/lcrand.c +++ b/rand/lcrand.c @@ -244,7 +244,7 @@ static uint32 grange(grand *r, uint32 l) static const grand_ops gops = { "lcrand", - LCRAND_P, 0, + 0, LCRAND_P, gmisc, gdestroy, graw, gbyte, grand_defaultword, grange, grand_defaultfill };