Releases: arokettu/php-random-polyfill
Releases · arokettu/php-random-polyfill
0.2.1
- Verified compatibility of custom engines with the current PHP 8.2 master
getInt()
now has proper signaturegetInt(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
- No warning if the engine is
- Fixed incorrect range function selection [#1], thanks to @TimWolla
- Fixed byte selection in range64
0.2.0
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+
- Serialization and unserialization are now compatible with PHP 8.2