NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #4226 most downloaded on Packagist
Create cryptographically secure pseudo-random numbers, and manage big integers
Latest stable
3.2.0
Last release 8 years ago
no release in 18 months
Ships unpredictably
gaps range from 3 weeks to 2.0 years
Rarely documented
notes for 8 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
68 releases · first in 2012
Drag across the ruler to compare, or tap a release to open it.
Added #40 adds support for PHP 7.3. #38 adds support for paragonie/random_compat 9.99.99. Changed Nothing. Deprecated Nothing. Removed Nothing. Fixed
Added Nothing. Changed Nothing. Deprecated Nothing. Removed Nothing. Fixed #34 fixes the docblock for Rand::getFloat to indicate that the bottom bound
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Added #31 adds support for PHP 7.1 and 7.2. Changed #33 modifies the Bcmath BigInteger class to no longer change the global bcscale , but instead send
#33 modifies the Bcmath BigInteger class to no longer change the global
bcscale, but instead send the 0 scale value explicitly to each bcmath operation. This prevents
side effects when using bcmath in other scenarios.
#29 modifies how caught exceptions are re-thrown; all such cases now provide
the original exception as the previous exception.
This version contains a number of changes to required dependencies, error handling, and internals; please read the migration document for full details
This version contains a number of changes to required dependencies, error handling, and internals; please read the migration document for full details.
ext/mbstring.paragonie/random_compat for polyfilling PHP 7's random_bytes() and random_int() functionality.$strong optional parameter from the following methods, as the component nowRand::getBytes($length)Rand::getBoolean()Rand::getInteger($min, $max)Rand::getFloat()Rand::getString($length, $charlist = null)/dev/urandom or COM (this is delegated torandom_bytes() and/or paragonie/random_compat)Zend\Math\Source\HashTiming, as it was used only with RandomLib.substr() and strlen() with mb_substr() andmb_strlen(); these ensure that all string manipulations within the componentAdded Nothing. Changed Nothing. Deprecated Nothing. Removed Nothing. Fixed #37 adds the static method isSupported to the Zend\Math\Source\HashTiming c
isSupported to the Zend\Math\Source\HashTimingRandomLib\Source interface from version 2.7Added Nothing. Deprecated Nothing. Removed Nothing. Fixed #16 updates Zend\Math\Rand to use PHP 7's random_bytes() and random_int() or mcrypt when det
Zend\Math\Rand to use PHP 7's random_bytes() and random_int() or mcryptircmaxell/RandomLib otherwise, instead of using## Added - Nothing. ## Deprecated - Nothing. ## Removed - #5 removes Zend\Math\BigInteger\AdapterPluginManager, and thus the zend-servicemanager depen
Zend\Math\BigInteger\AdapterPluginManager, and thus the zend-servicemanager dependency. Essentially, no other possible plugins are likely to ever be needed outside of those shipped with the component, so using a plugin manager was overkill. The functionality for loading the two shipped adapters has been### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #7 fixes how base conversions are accomplished within the bcmath ada
base_convert() is used for base36 and below, while continuing to use the
base62 alphabet for anything above.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.