Home

Awesome

rng go.dev ref report card coverage OpenSSF badge

Package rng is a compact, fast, sponge-based, lockless and hard-to-predict random number generator. See Green tick > QA / Tests > Details for some statistical tests and benchmarks. It is compared with standard library's math/rand and an alternative implementation exp/rand below:

LibraryEffective entropy<br>(hidden info, in bits)Used memory (in bytes)
rng12824
std314920
alt6448

rng API adheres to semantic versioning. rng is not suitable for cryptographic applications because it has 128 bits capacity.

Support

See Contributing, Security and Support guides. Also if you use rng and like it, please support via Github Sponsors or: