From: Joas Schilling Date: Mon, 17 Nov 2014 16:37:37 +0000 (+0100) Subject: Back to OC_Util::generateRandomBytes() X-Git-Tag: v7.0.4RC1~22^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f371f14fc2117206fd063d4b8fe9bee071418ba4;p=nextcloud-server.git Back to OC_Util::generateRandomBytes() --- 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); } }