Releases: Riimu/Kit-SecureRandom
Releases · Riimu/Kit-SecureRandom
Version 1.3.1
- The
ByteNumberGenerator::getNumber()
will now throw anGeneratorException
if the difference between minimum and maximum is not an integer - Rely on
unpack()
rather thanhexdec(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
- 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 nonNumberGenerator
generators for generating random numbers - Improved the bundled autoloader slightly
Version 1.2.0
- 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
- Address some unlikely corner cases
- Improve coding standards in some areas of code
Version 1.1.1
- 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