about summary refs log tree commit diff
path: root/src/prng/rand.c
Commit message (Collapse)AuthorAgeFilesLines
* prng: fix rand() to give good sequence with small stateSzabolcs Nagy2013-06-081-2/+4
| | | | | | | 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
* initial check-in, version 0.5.0 v0.5.0Rich Felker2011-02-121-0/+13