summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-13 19:41:34 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-13 19:41:34 +0100
commitdffa922c0b3c84394b955caeabac004381e604ac (patch)
treea8fc5f1c90b5cfc23263516fed5bd8c58ecdd46b /apps/files_external
parent1faef0c459a51a025f73f7eee46e5607ee6eedf5 (diff)
downloadnextcloud-server-dffa922c0b3c84394b955caeabac004381e604ac.tar.gz
nextcloud-server-dffa922c0b3c84394b955caeabac004381e604ac.zip
Remove deprecated functions for OCP\Util
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index 13960dde684..ae04daf4f31 100644
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -361,7 +361,7 @@ class OC_Mount_Config {
*/
private static function encryptPassword($password) {
$cipher = self::getCipher();
- $iv = \OCP\Util::generateRandomBytes(16);
+ $iv = \OC::$server->getSecureRandom()->generate(16);
$cipher->setIV($iv);
return base64_encode($iv . $cipher->encrypt($password));
}