Add RandomBytesGenerator for use with PHP 7.

This commit is contained in:
Ben Ramsey
2015-07-22 21:34:15 +00:00
parent a06a01b07d
commit 1bdc10a306
3 changed files with 47 additions and 0 deletions
@@ -8,6 +8,7 @@ class RandomGeneratorFactoryTest extends TestCase
{
public function testFactoryReturnsNonOpenSslGeneratorWithForceNoOpenSsl()
{
RandomGeneratorFactory::$forceNoRandomBytes = true;
RandomGeneratorFactory::$forceNoOpensslRandomPseudoBytes = true;
$generator = RandomGeneratorFactory::getGenerator();