summaryrefslogtreecommitdiff
path: root/php
diff options
context:
space:
mode:
Diffstat (limited to 'php')
-rw-r--r--php/upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/php/upload.php b/php/upload.php
index 6f764f5..a4d7a5a 100644
--- a/php/upload.php
+++ b/php/upload.php
@@ -45,7 +45,7 @@ function generateName($file)
$chars = ID_CHARSET;
$name = '';
for ($i = 0; $i < $length; ++$i) {
- $name .= $chars[array_rand($chars)];
+ $name .= $chars[mt_rand(0, strlen($chars))];
}
// Add the extension to the file name