summaryrefslogtreecommitdiffstats
path: root/tests/lib/security/securerandom.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/security/securerandom.php')
-rw-r--r--tests/lib/security/securerandom.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/security/securerandom.php b/tests/lib/security/securerandom.php
index 5eede9a30fb..526066d92ee 100644
--- a/tests/lib/security/securerandom.php
+++ b/tests/lib/security/securerandom.php
@@ -51,7 +51,7 @@ class SecureRandomTest extends \Test\TestCase {
* @dataProvider stringGenerationProvider
*/
function testMediumLowStrengthGeneratorLength($length, $expectedLength) {
- $generator = $this->rng->getMediumStrengthGenerator();
+ $generator = $this->rng;
$this->assertEquals($expectedLength, strlen($generator->generate($length)));
}
@@ -67,7 +67,7 @@ class SecureRandomTest extends \Test\TestCase {
* @dataProvider charCombinations
*/
public function testScheme($charName, $chars) {
- $generator = $this->rng->getMediumStrengthGenerator();
+ $generator = $this->rng;
$scheme = constant('OCP\Security\ISecureRandom::' . $charName);
$randomString = $generator->generate(100, $scheme);
$matchesRegex = preg_match('/^'.$chars.'+$/', $randomString);