summaryrefslogtreecommitdiffstats
path: root/paste/include/storage/MysqlStorage.php
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2009-12-11 03:25:32 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2009-12-11 03:25:32 +0100
commit00825deae7865c3e8bd3dd009f222e6b6aa80da2 (patch)
tree0fab3a0ce3c582c5475b52acd1595caedc51b322 /paste/include/storage/MysqlStorage.php
parentd5e2a07fb514a2f16077b43e365766014fe87ea6 (diff)
downloadrafb-nopaste-00825deae7865c3e8bd3dd009f222e6b6aa80da2.tar.gz
rafb-nopaste-00825deae7865c3e8bd3dd009f222e6b6aa80da2.tar.xz
rafb-nopaste-00825deae7865c3e8bd3dd009f222e6b6aa80da2.zip
fixed wrong rand(i) invoke
Diffstat (limited to 'paste/include/storage/MysqlStorage.php')
-rw-r--r--paste/include/storage/MysqlStorage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/include/storage/MysqlStorage.php b/paste/include/storage/MysqlStorage.php
index 239f113..d15de55 100644
--- a/paste/include/storage/MysqlStorage.php
+++ b/paste/include/storage/MysqlStorage.php
@@ -69,7 +69,7 @@ FULLTEXT INDEX (content)
public function setContent($content)
{
- $name = sha1(date('r') . rand(1000));
+ $name = sha1(date('r') . rand(1000, getrandmax()));
if ($config['short_results_path']) {
$urlbase = $config['short_results_path'];