diff --git a/src/Generator/RandomLibAdapter.php b/src/Generator/RandomLibAdapter.php index 15be9ee..5aa0e88 100644 --- a/src/Generator/RandomLibAdapter.php +++ b/src/Generator/RandomLibAdapter.php @@ -33,7 +33,7 @@ class RandomLibAdapter implements RandomGeneratorInterface /** * Constructs a `RandomLibAdapter` using a `RandomLib\Generator` * - * By default, if no `Generator` is passed in, this creates a medium-strength + * By default, if no `Generator` is passed in, this creates a high-strength * generator to use when generating random binary data. * * @param Generator $generator An paragonie/random-lib `Generator` @@ -45,7 +45,7 @@ class RandomLibAdapter implements RandomGeneratorInterface if ($this->generator === null) { $factory = new Factory(); - $this->generator = $factory->getMediumStrengthGenerator(); + $this->generator = $factory->getHighStrengthGenerator(); } } diff --git a/tests/Generator/RandomLibAdapterTest.php b/tests/Generator/RandomLibAdapterTest.php index b28ecba..9e0da77 100644 --- a/tests/Generator/RandomLibAdapterTest.php +++ b/tests/Generator/RandomLibAdapterTest.php @@ -20,7 +20,7 @@ class RandomLibAdapterTest extends TestCase public function testAdapterWithGeneratorDoesNotCreateGenerator() { $factory = Mockery::mock('overload:RandomLib\Factory'); - $factory->shouldNotReceive('getMediumStrengthGenerator') + $factory->shouldNotReceive('getHighStrengthGenerator') ->getMock(); $generator = $this->getMockBuilder('RandomLib\Generator') @@ -36,7 +36,7 @@ class RandomLibAdapterTest extends TestCase public function testAdapterWithoutGeneratorGreatesGenerator() { $factory = Mockery::mock('overload:RandomLib\Factory'); - $factory->shouldReceive('getMediumStrengthGenerator') + $factory->shouldReceive('getHighStrengthGenerator') ->once() ->getMock();