summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/server.php2
-rw-r--r--lib/public/iservercontainer.php8
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
*