diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-09-03 17:18:00 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-09-03 17:18:00 +0200 |
commit | 26f337d523d23c7081e3a307a901e4fc3dcd457c (patch) | |
tree | d5df4d9a878444d57269b00d8c41797021aaa0ad /lib | |
parent | 954925eaa0cb837530ebe05b58d7b56341bd53b5 (diff) | |
download | nextcloud-server-26f337d523d23c7081e3a307a901e4fc3dcd457c.tar.gz nextcloud-server-26f337d523d23c7081e3a307a901e4fc3dcd457c.zip |
Only return lowercase letters and digits for backwards compatbility
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/private/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); } /** |