chiark
/
gitweb
/
~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c70dfb
)
rand/lcrand.c: Swap flags and max so generator not advertised as strong.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 15 Nov 2019 19:37:29 +0000
(19:37 +0000)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/rand/lcrand.c
b/rand/lcrand.c
index d8c4a378267b5a5c957cb678b9a6150cceec3436..1c76f65bd5c061d146127defca29422392b03e16 100644
(file)
--- 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
};