Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 765 Bytes

README.md

File metadata and controls

13 lines (7 loc) · 765 Bytes

Lean - QuickRandom

This is a Lehmer PRNG in C which passes TestU01's BigCrunch. For more info see here.

This generator focuses on speed and thus has some operating constraints. See Main.c for usage examples.


This PRNG is zero-sensitive (though the chance of hitting a zero is about 1 in 340 undecillion). I have tested this PRNG using a seed of 1 up to 21,520,000,000,000 iterations (~156.6 TB) without encountering a zero, so just don't use a seed of zero and you will probably be fine.

There are no guarantees as to the PRNG period.

I've found speeds of ~5 GB/s can be achieved on modern hardware (5600X), though YMMV.