README.md

August 3, 2025 ยท View on GitHub

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 math/rand/v2 below:

LibraryEffective entropy in bitsUsed memory in bytes
rng12824
std314920
v2.PCG6432
v2.ChaCha256336

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

Support

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

  • BTC:bc1qr8m7n0w3xes6ckmau02s47a23e84umujej822e
  • ETH:0x3a844321042D8f7c5BB2f7AB17e20273CA6277f6