diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-11 19:59:15 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-11 19:59:15 +0100 |
commit | 98c4951f458f398c022bf928ff17b106a7901428 (patch) | |
tree | 637a9189abdccda6d4cf3a594d9be462dad32384 /tests | |
parent | 373776b8d84bece3df4a06b157bbe41f51ef511d (diff) | |
download | nextcloud-server-98c4951f458f398c022bf928ff17b106a7901428.tar.gz nextcloud-server-98c4951f458f398c022bf928ff17b106a7901428.zip |
getLowStrengthGenerator does not do anything anymore
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/security/securerandom.php | 2 | ||||
-rw-r--r-- | tests/lib/testcase.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/security/securerandom.php b/tests/lib/security/securerandom.php index af437640805..5eede9a30fb 100644 --- a/tests/lib/security/securerandom.php +++ b/tests/lib/security/securerandom.php @@ -42,7 +42,7 @@ class SecureRandomTest extends \Test\TestCase { * @dataProvider stringGenerationProvider */ function testGetLowStrengthGeneratorLength($length, $expectedLength) { - $generator = $this->rng->getLowStrengthGenerator(); + $generator = $this->rng; $this->assertEquals($expectedLength, strlen($generator->generate($length))); } diff --git a/tests/lib/testcase.php b/tests/lib/testcase.php index 93b354863a9..38d5cf49320 100644 --- a/tests/lib/testcase.php +++ b/tests/lib/testcase.php @@ -150,7 +150,7 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase { * @return string */ protected static function getUniqueID($prefix = '', $length = 13) { - return $prefix . \OC::$server->getSecureRandom()->getLowStrengthGenerator()->generate( + return $prefix . \OC::$server->getSecureRandom()->generate( $length, // Do not use dots and slashes as we use the value for file names ISecureRandom::CHAR_DIGITS . ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_UPPER |