diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-31 11:13:46 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-07 13:30:29 +0200 |
commit | 6ccd3ffa23882b7d5018d707d2563a12c418fc09 (patch) | |
tree | 221a1e42eb6554032e8b72404e04813ed9082a06 /lib | |
parent | 4843e5ce301c4ac1e4cccf21b7d33e5e2a2b3042 (diff) | |
download | nextcloud-server-6ccd3ffa23882b7d5018d707d2563a12c418fc09.tar.gz nextcloud-server-6ccd3ffa23882b7d5018d707d2563a12c418fc09.zip |
adding function getSecureRandom(); to IServerContainer
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/server.php | 2 | ||||
-rw-r--r-- | lib/public/iservercontainer.php | 8 |
2 files changed, 8 insertions, 2 deletions
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 @@ -150,13 +150,19 @@ 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 * @return \OCP\IDb */ function getDb(); - /** * Returns the app config manager * |