diff options
Diffstat (limited to 'apps/federation')
-rw-r--r-- | apps/federation/api/ocsauthapi.php | 2 | ||||
-rw-r--r-- | apps/federation/lib/trustedservers.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/federation/api/ocsauthapi.php b/apps/federation/api/ocsauthapi.php index b94550fd4f2..c089c89f9d4 100644 --- a/apps/federation/api/ocsauthapi.php +++ b/apps/federation/api/ocsauthapi.php @@ -139,7 +139,7 @@ class OCSAuthAPI { return new \OC_OCS_Result(null, HTTP::STATUS_FORBIDDEN); } - $sharedSecret = $this->secureRandom->getMediumStrengthGenerator()->generate(32); + $sharedSecret = $this->secureRandom->generate(32); $this->trustedServers->addSharedSecret($url, $sharedSecret); // reset token after the exchange of the shared secret was successful diff --git a/apps/federation/lib/trustedservers.php b/apps/federation/lib/trustedservers.php index 96a29178076..d1a27bf1220 100644 --- a/apps/federation/lib/trustedservers.php +++ b/apps/federation/lib/trustedservers.php @@ -90,7 +90,7 @@ class TrustedServers { $url = $this->updateProtocol($url); $result = $this->dbHandler->addServer($url); if ($result) { - $token = $this->secureRandom->getMediumStrengthGenerator()->generate(16); + $token = $this->secureRandom->generate(16); $this->dbHandler->addToken($url, $token); $this->jobList->add( 'OCA\Federation\BackgroundJob\RequestSharedSecret', |