mirror of https://git.musl-libc.org/git/musl
Browse Source
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.4rs-1.0
1 changed files with 4 additions and 2 deletions
Loading…
Reference in new issue