Skip to content

Releases: JoakimCh/pluggable-prng

v2.1.0 - 2023.02.06

06 Feb 01:55
Compare
Choose a tag to compare

Added

Fixed

  • RandomGenerator_WebCrypto now works with Node.js >= v19.

Changed

  • A backwards compatible change to randomInteger now allows it to be used similar to randomFloat 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 the uint64.js version is just as fast.
  • The longfn.js library (which was 28 KB we didn't need).

v2.0.0 - 2021.09.06

06 Sep 12:25
Compare
Choose a tag to compare

Changed

  • Optimized the performance of RandomGenerator_WebCrypto by encrypting more data at each call to crypto.subtle.encrypt and buffering it for later calls to randomUint32. It's now 5110% faster! This change makes it incompatible with previously exported states, hence I upped the version number to 2.0.0.

v1.0.1

06 May 10:54
Compare
Choose a tag to compare

Give proper error when missing RandomGenerator

v1.0.0

05 May 17:26
cdf4dc1
Compare
Choose a tag to compare

First release