summaryrefslogtreecommitdiffstats
path: root/lib/private/util.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-01-10 22:07:33 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-10 22:07:33 +0100
commite01a488b3136ec7b0f2614cd49e4cf1afce1f655 (patch)
tree39354b0faa1b5a74a85aac044ba302163d2f701d /lib/private/util.php
parent656b5418996744b5ba095afac59b4fdb4db37337 (diff)
downloadnextcloud-server-e01a488b3136ec7b0f2614cd49e4cf1afce1f655.tar.gz
nextcloud-server-e01a488b3136ec7b0f2614cd49e4cf1afce1f655.zip
Remove generateRandomBytes from OC_Util
Diffstat (limited to 'lib/private/util.php')
-rw-r--r--lib/private/util.php12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index ecb18946f12..ed62f1afb4a 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -1278,18 +1278,6 @@ class OC_Util {
}
}
-
- /**
- * Generates a cryptographic secure pseudo-random string
- *
- * @param int $length of the random string
- * @return string
- * @deprecated Use \OC::$server->getSecureRandom()->getMediumStrengthGenerator()->generate($length); instead
- */
- public static function generateRandomBytes($length = 30) {
- return \OC::$server->getSecureRandom()->getMediumStrengthGenerator()->generate($length, \OCP\Security\ISecureRandom::CHAR_LOWER.\OCP\Security\ISecureRandom::CHAR_DIGITS);
- }
-
/**
* Checks whether the server is running on Windows
*