GitHub repository: JoakimCh/pluggable-prng
Primary language: JavaScript
Created: 2021-05-05T14:55:23Z
Description: 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.