Skip to content
/ rng Public

🔢 Compact, Fast, Sponge-based, Lockless & Hard-to-predict Random Number Generator

License

Notifications You must be signed in to change notification settings

jfcg/rng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

Library Effective entropy
(hidden info, in bits)
Used memory (in bytes)
rng 128 24
std 31 4920
alt 64 48

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:

  • BTC:bc1qr8m7n0w3xes6ckmau02s47a23e84umujej822e
  • ETH:0x3a844321042D8f7c5BB2f7AB17e20273CA6277f6

About

🔢 Compact, Fast, Sponge-based, Lockless & Hard-to-predict Random Number Generator

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages