summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-11-17 17:37:37 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-11-19 10:06:14 +0100
commitf371f14fc2117206fd063d4b8fe9bee071418ba4 (patch)
tree77d4106664776253e4a2ed9944ee9e74008a234a
parent4e1799759c6b326fb5f0c867ade761ae2b92d22e (diff)
downloadnextcloud-server-f371f14fc2117206fd063d4b8fe9bee071418ba4.tar.gz
nextcloud-server-f371f14fc2117206fd063d4b8fe9bee071418ba4.zip
Back to OC_Util::generateRandomBytes()
-rw-r--r--tests/lib/testcase.php5
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);
}
}