Releases: JoakimCh/pluggable-prng
Releases · JoakimCh/pluggable-prng
v2.1.0 - 2023.02.06
Added
RandomGenerator_IronWellons32
. More info here. A contribution by Pimm.RandomGenerator_WellonsTriple32
. More info here..
Fixed
RandomGenerator_WebCrypto
now works with Node.js >= v19.
Changed
- A backwards compatible change to
randomInteger
now allows it to be used similar torandomFloat
with all arguments optional. If supplied just one argument it will now be used as the max integer size; meaning it will generate an integer from 0 up to that size.
Removed
- The PCG32 implementation using
longfn.js
since theuint64.js
version is just as fast. - The
longfn.js
library (which was 28 KB we didn't need).
v2.0.0 - 2021.09.06
Changed
- Optimized the performance of
RandomGenerator_WebCrypto
by encrypting more data at each call tocrypto.subtle.encrypt
and buffering it for later calls torandomUint32
. It's now 5110% faster! This change makes it incompatible with previously exported states, hence I upped the version number to 2.0.0.