diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2011-04-27 19:30:00 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2011-04-27 19:30:00 -0700 |
commit | 4e20e71d0375ed65d75dbdb12113f737db90b3e7 (patch) | |
tree | 51d15ed4ac3ee4f44886f94ed8c3197c76d050ac /modules/gallery/helpers/random.php | |
parent | 7f48671186a4bf3a4745cd7a31b48a891dd83078 (diff) | |
parent | 7577d02fe2f2c37a79caf6a32b246f5a046c917a (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/helpers/random.php')
-rw-r--r-- | modules/gallery/helpers/random.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/modules/gallery/helpers/random.php b/modules/gallery/helpers/random.php index 6016df7b..06542e8c 100644 --- a/modules/gallery/helpers/random.php +++ b/modules/gallery/helpers/random.php @@ -19,7 +19,7 @@ */ class random_Core { /** - * Return a random 32 bit hash value. + * Return a random 32 byte hash value. * @param string extra entropy data */ static function hash($entropy="") { @@ -27,14 +27,6 @@ class random_Core { } /** - * Return a random hexadecimal string of the given length. - * @param int the desired length of the string - */ - static function string($length) { - return substr(random::hash(), 0, $length); - } - - /** * Return a random floating point number between 0 and 1 */ static function percent() { |