summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-14 14:56:38 +0100
committerGitHub <noreply@github.com>2018-01-14 14:56:38 +0100
commit3adda336a5d79bf8316c04defb7bd91196033373 (patch)
tree627c204aa1e94bbdc7bb409c3fc8ff0efab7d889 /apps/files_external
parenta2678d56aac487597fe095011d57d54c0b154ac8 (diff)
parentdffa922c0b3c84394b955caeabac004381e604ac (diff)
downloadnextcloud-server-3adda336a5d79bf8316c04defb7bd91196033373.tar.gz
nextcloud-server-3adda336a5d79bf8316c04defb7bd91196033373.zip
Merge pull request #7843 from nextcloud/dep_util
Remove deprecated functions for OCP\Util
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));
}