summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/tests/Group_LDAPTest.php2
1 files changed, 1 insertions, 1 deletions
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);