From 26f337d523d23c7081e3a307a901e4fc3dcd457c Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Wed, 3 Sep 2014 17:18:00 +0200 Subject: [PATCH] Only return lowercase letters and digits for backwards compatbility --- lib/private/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/util.php b/lib/private/util.php index 8fae5189ca2..bc20b7bcd56 100755 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -1211,7 +1211,7 @@ class OC_Util { * @deprecated Use \OC::$server->getSecureRandom()->getMediumStrengthGenerator()->generate($length); instead */ public static function generateRandomBytes($length = 30) { - return \OC::$server->getSecureRandom()->getMediumStrengthGenerator()->generate($length); + return \OC::$server->getSecureRandom()->getMediumStrengthGenerator()->generate($length, \OCP\Security\ISecureRandom::CHAR_LOWER.\OCP\Security\ISecureRandom::CHAR_DIGITS); } /** -- 2.39.5