From 00825deae7865c3e8bd3dd009f222e6b6aa80da2 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 11 Dec 2009 03:25:32 +0100 Subject: fixed wrong rand(i) invoke --- paste/include/storage/MysqlStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'paste/include/storage/MysqlStorage.php') 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']; -- cgit v1.2.3