diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-11-17 17:37:37 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-11-19 10:06:14 +0100 |
commit | f371f14fc2117206fd063d4b8fe9bee071418ba4 (patch) | |
tree | 77d4106664776253e4a2ed9944ee9e74008a234a | |
parent | 4e1799759c6b326fb5f0c867ade761ae2b92d22e (diff) | |
download | nextcloud-server-f371f14fc2117206fd063d4b8fe9bee071418ba4.tar.gz nextcloud-server-f371f14fc2117206fd063d4b8fe9bee071418ba4.zip |
Back to OC_Util::generateRandomBytes()
-rw-r--r-- | tests/lib/testcase.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/lib/testcase.php b/tests/lib/testcase.php index a4b4b0103f0..f257822c9ea 100644 --- a/tests/lib/testcase.php +++ b/tests/lib/testcase.php @@ -25,9 +25,6 @@ namespace Test; abstract class TestCase extends \PHPUnit_Framework_TestCase { protected function getUniqueID($prefix = '', $length = 13) { // Do not use dots and slashes as we use the value for file names - return $prefix . \OC::$server->getSecureRandom()->getLowStrengthGenerator()->generate( - $length, - '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' - ); + return $prefix . \OC_Util::generateRandomBytes($length); } } |