diff options
author | Szabolcs Nagy <nsz@port70.net> | 2013-06-08 13:31:10 +0000 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2013-06-08 13:31:10 +0000 |
commit | c79cd27e9e81eb5e223728094f1233ee2fc12dda (patch) | |
tree | c210ea1472b25519a62fd33e04e5809a16e76cbc /src/string/wcsncasecmp_l.c | |
parent | fd1d7be35f1b7f083071e246208498aa3b5ced3e (diff) | |
download | musl-c79cd27e9e81eb5e223728094f1233ee2fc12dda.tar.gz musl-c79cd27e9e81eb5e223728094f1233ee2fc12dda.tar.bz2 musl-c79cd27e9e81eb5e223728094f1233ee2fc12dda.tar.xz musl-c79cd27e9e81eb5e223728094f1233ee2fc12dda.zip |
prng: fix rand() to give good sequence with small state
some applications rely on the low bits of rand() to be reasonably good
quality prng, so now it fixed by using the top bits of a 64 bit LCG,
this is simple, has small state and passes statistical tests.
D.E. Knuth attributes the multiplier to C.E. Haynes in TAOCP Vol2 3.3.4
Diffstat (limited to 'src/string/wcsncasecmp_l.c')
0 files changed, 0 insertions, 0 deletions