summaryrefslogtreecommitdiffstats
path: root/lib/private/security/crypto.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/security/crypto.php')
-rw-r--r--lib/private/security/crypto.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/security/crypto.php b/lib/private/security/crypto.php
index 46d0c750b2f..6737902640f 100644
--- a/lib/private/security/crypto.php
+++ b/lib/private/security/crypto.php
@@ -90,7 +90,7 @@ class Crypto implements ICrypto {
}
$this->cipher->setPassword($password);
- $iv = $this->random->getLowStrengthGenerator()->generate($this->ivLength);
+ $iv = $this->random->generate($this->ivLength);
$this->cipher->setIV($iv);
$ciphertext = bin2hex($this->cipher->encrypt($plaintext));