This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
zend-math 3.0.0
·
111 commits
to master
since this release
This version contains a number of changes to required dependencies, error handling, and internals; please read the migration document for full details.
Added
- #18 adds a requirement on
ext/mbstring
. - #18 adds a requirement on
paragonie/random_compat
for polyfilling PHP 7'srandom_bytes()
andrandom_int()
functionality. - #20 prepares and publishes documentation to https://zendframework.github.io/zend-math/
Deprecated
- Nothing.
Removed
- #18 removes the
$strong
optional parameter from the following methods, as the component now
ensures a cryptographically secure pseudo-random number generator is always
used:Rand::getBytes($length)
Rand::getBoolean()
Rand::getInteger($min, $max)
Rand::getFloat()
Rand::getString($length, $charlist = null)
- #18 removes the
requirement on ircmaxell/random-lib, in favor of paragonie/random_compat (as
noted above); this also resulted in the removal of:- direct usage of mcrypt (this is delegated to paragonie/random_compat)
- direct usage of
/dev/urandom
orCOM
(this is delegated to
random_bytes()
and/or paragonie/random_compat) Zend\Math\Source\HashTiming
, as it was used only withRandomLib
.
Fixed
- #18 updates the code to
replace usage ofsubstr()
andstrlen()
withmb_substr()
and
mb_strlen()
; these ensure that all string manipulations within the component
remain binary safe.