Skip to content

Releases: Riimu/Kit-SecureRandom

Version 1.3.1

09 Sep 15:23
Compare
Choose a tag to compare
  • The ByteNumberGenerator::getNumber() will now throw an GeneratorException
    if the difference between minimum and maximum is not an integer
  • Rely on unpack() rather than hexdec(bin2hex()) due to being less likely
    to be affected by timing vulnerabilities.
  • Require phpcs and php-cs-fixer as external dependencies in the travis build
    instead of including them as dev dependencies

Version 1.3.0

14 Jul 14:28
Compare
Choose a tag to compare
  • The minimum required PHP version has been increased to 5.6
  • Updated the test suite to work with PHPUnit 6
  • Updated the travis build to test for PHP 7.1
  • Updated to latest coding standards
  • Added SecureRandom::getRandom() which returns a random float between 0 and
    1 with more uniform distribution and always less than 1.
  • Added SecureRandom::getUuid() which returns a random version 4 UUID.
  • Added Generator\ByteNumberGenerator that wraps non NumberGenerator
    generators for generating random numbers
  • Improved the bundled autoloader slightly

Version 1.2.0

12 May 09:42
Compare
Choose a tag to compare
  • Added support for PHP's internal CSPRNG in php 7.0 (which is used by default)
  • Added NumberGenerator interface for generators that can natively generate numbers

Version 1.1.2

14 Aug 18:37
Compare
Choose a tag to compare
  • Address some unlikely corner cases
  • Improve coding standards in some areas of code

Version 1.1.1

25 Jan 17:01
Compare
Choose a tag to compare
  • Improvements in code quality and documentation
  • Added a simple test for even distribution
  • composer.json now lists openssl and mcrypt as suggested packages instead of
    being listed as requirements