diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-11 20:05:30 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-11 20:06:30 +0100 |
commit | 876fb83ddcf7ae6c1b63e7d7a1636893c52284b6 (patch) | |
tree | 69b862da6255199689b9cfc3fc3f232da9977d99 /lib/private/util.php | |
parent | 98c4951f458f398c022bf928ff17b106a7901428 (diff) | |
download | nextcloud-server-876fb83ddcf7ae6c1b63e7d7a1636893c52284b6.tar.gz nextcloud-server-876fb83ddcf7ae6c1b63e7d7a1636893c52284b6.zip |
getMediumStrengthGenerator is deprecated and does not do anything anymore
Diffstat (limited to 'lib/private/util.php')
-rw-r--r-- | lib/private/util.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 5a7a4d8ae5d..ff28f782382 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -1125,7 +1125,7 @@ class OC_Util { // Check if a token exists if (!\OC::$server->getSession()->exists('requesttoken')) { // No valid token found, generate a new one. - $requestToken = \OC::$server->getSecureRandom()->getMediumStrengthGenerator()->generate($tokenLength); + $requestToken = \OC::$server->getSecureRandom()->generate($tokenLength); \OC::$server->getSession()->set('requesttoken', $requestToken); } else { // Valid token already exists, send it @@ -1133,7 +1133,7 @@ class OC_Util { } // XOR the token to mitigate breach-like attacks - $sharedSecret = \OC::$server->getSecureRandom()->getMediumStrengthGenerator()->generate($tokenLength); + $sharedSecret = \OC::$server->getSecureRandom()->generate($tokenLength); self::$obfuscatedToken = base64_encode($requestToken ^ $sharedSecret) .':'.$sharedSecret; return self::$obfuscatedToken; |