diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-14 14:56:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-14 14:56:38 +0100 |
commit | 3adda336a5d79bf8316c04defb7bd91196033373 (patch) | |
tree | 627c204aa1e94bbdc7bb409c3fc8ff0efab7d889 /apps | |
parent | a2678d56aac487597fe095011d57d54c0b154ac8 (diff) | |
parent | dffa922c0b3c84394b955caeabac004381e604ac (diff) | |
download | nextcloud-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')
-rw-r--r-- | apps/files_external/lib/config.php | 2 | ||||
-rw-r--r-- | apps/user_ldap/tests/Group_LDAPTest.php | 2 |
2 files changed, 2 insertions, 2 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)); } diff --git a/apps/user_ldap/tests/Group_LDAPTest.php b/apps/user_ldap/tests/Group_LDAPTest.php index e758bc9bd02..03fd73f261f 100644 --- a/apps/user_ldap/tests/Group_LDAPTest.php +++ b/apps/user_ldap/tests/Group_LDAPTest.php @@ -150,7 +150,7 @@ class Group_LDAPTest extends \Test\TestCase { $access->expects($this->any()) ->method('dn2username') ->will($this->returnCallback(function() { - return 'foobar' . \OCP\Util::generateRandomBytes(7); + return 'foobar' . \OC::$server->getSecureRandom()->generate(7); })); $groupBackend = new GroupLDAP($access,$pluginManager); |