From f371f14fc2117206fd063d4b8fe9bee071418ba4 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 17 Nov 2014 17:37:37 +0100 Subject: [PATCH] Back to OC_Util::generateRandomBytes() --- tests/lib/testcase.php | 5 +---- 1 file changed, 1 insertion(+), 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); } } -- 2.39.5