Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

zend-math 3.0.0

Compare
Choose a tag to compare
@weierophinney weierophinney released this 28 Apr 17:41
· 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

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 or COM (this is delegated to
      random_bytes() and/or paragonie/random_compat)
    • Zend\Math\Source\HashTiming, as it was used only with RandomLib.

Fixed

  • #18 updates the code to
    replace usage of substr() and strlen() with mb_substr() and
    mb_strlen(); these ensure that all string manipulations within the component
    remain binary safe.