From: Thomas Müller Date: Tue, 31 Mar 2015 09:13:46 +0000 (+0200) Subject: adding function getSecureRandom(); to IServerContainer X-Git-Tag: v8.1.0alpha1~78^2~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6ccd3ffa23882b7d5018d707d2563a12c418fc09;p=nextcloud-server.git adding function getSecureRandom(); to IServerContainer --- diff --git a/lib/private/server.php b/lib/private/server.php index d135150c1f7..a38096cf740 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -690,7 +690,7 @@ class Server extends SimpleContainer implements IServerContainer { * * @return \OCP\Security\ISecureRandom */ -function getSecureRandom() { + function getSecureRandom() { return $this->query('SecureRandom'); } diff --git a/lib/public/iservercontainer.php b/lib/public/iservercontainer.php index 2db1fc32499..9e36bc31bed 100644 --- a/lib/public/iservercontainer.php +++ b/lib/public/iservercontainer.php @@ -149,6 +149,13 @@ interface IServerContainer { */ function getHasher(); + /** + * Returns a SecureRandom instance + * + * @return \OCP\Security\ISecureRandom + */ + function getSecureRandom(); + /** * Returns an instance of the db facade * @deprecated use getDatabaseConnection, will be removed in ownCloud 10 @@ -156,7 +163,6 @@ interface IServerContainer { */ function getDb(); - /** * Returns the app config manager *