summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
diff options
context:
space:
mode:
authorChad Parry <github@chad.parry.org>2011-04-27 20:35:58 -0600
committerChad Parry <github@chad.parry.org>2011-04-27 20:35:58 -0600
commit6d564f185e5279d6cca9a7385066514ff18a2455 (patch)
tree40d7ebab63894412b57aeb4a7ce660b0c255ac00 /modules/gallery/helpers
parent7ff485fa48c392bbbb0370f67cb1bd6fcc00c2a4 (diff)
parent406064087662184ec7f85297b9cdf83a77976616 (diff)
Merge branch 'master' of https://github.com/gallery/gallery3 into rawphoto
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r--modules/gallery/helpers/random.php10
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() {