rand/lcrand.c: Swap flags and max so generator not advertised as strong.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 15 Nov 2019 19:37:29 +0000 (19:37 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 16 Dec 2019 17:13:12 +0000 (17:13 +0000)
Oh, dear.  This isn't good.

Even worse, this means that `max' was advertised as zero, so the outputs
have been biased.

rand/lcrand.c

index d8c4a37..1c76f65 100644 (file)
@@ -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
 };