Skip to content

Releases: arokettu/php-random-polyfill

0.2.1

31 Jul 09:28
Compare
Choose a tag to compare
0.2.1 Pre-release
Pre-release
  • Verified compatibility of custom engines with the current PHP 8.2 master
  • getInt() now has proper signature getInt(int $min, int $max)
  • arrayPickKeys() throws a warning because full compatibility is not achievable.
    Thanks to @TimWolla for the explanation in #1
    • No warning if the engine is CryptoSafeEngine
  • Fixed incorrect range function selection [#1], thanks to @TimWolla
  • Fixed byte selection in range64

0.2.0

27 Jul 01:57
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release

NOTE: 0.2.0 currently is not fully compatible when using custom engines.
This will be fixed in 0.3.0 after PHP 8.2.0 beta 2 is released with some critical fixes.

  • Randomizer
    • $engine
    • getBytes($length)
    • shuffleArray($array)
    • shuffleBytes($bytes)
    • arrayPickKeys($array, $num)
    • Serialization and unserialization are now compatible with PHP 8.2
      if performed in PHP 7.4+
  • Mt19937
    • Serialization and unserialization are now compatible with PHP 8.2
      if performed in PHP 7.4+

0.1.1

23 Jul 06:52
Compare
Choose a tag to compare
0.1.1 Pre-release
Pre-release
  • Fixed Mt not generating enough data sometimes

0.1.0

23 Jul 03:37
Compare
Choose a tag to compare
0.1.0 Pre-release
Pre-release
  • First release
  • Compatible with PHP 8.2.0 beta 1
  • Engines:
    • Secure Random
    • Mersenne Twister
  • Randomizer features:
    • getInt()
    • getInt($min, $max)