• Stars
    star
    4
  • Rank 3,304,323 (Top 66 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 3 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An ES module with a class providing a Pseudo-random number generator which is "pluggable", meaning you can plug-in any PRNG algorithm. It's also "seedable" meaning that it can have a reproducible (deterministic) output based on its starting seed. The module includes plugins for some fast and good (insecure) PRNGs (Alea, Sfc32, Mulberry32, Pcg32), but also a much slower cryptographically secure PRNG which is using the Web Crypto API.