Browse Source

Only return lowercase letters and digits for backwards compatbility

tags/v8.0.0alpha1
Lukas Reschke 9 years ago
parent
commit
26f337d523
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/private/util.php

+ 1
- 1
lib/private/util.php View File

@@ -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);
}

/**

Loading…
Cancel
Save