From f9cd8acb4ae40bfb57d8e6f6918836c84c2f4a14 Mon Sep 17 00:00:00 2001 From: Henry Sudhof Date: Thu, 11 Sep 2008 13:52:22 +0000 Subject: [PATCH] I don't think we need those git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@8842 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/bbcode.php | 3 --- phpBB/search.php | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php index d33233fc69..81073f1160 100644 --- a/phpBB/includes/bbcode.php +++ b/phpBB/includes/bbcode.php @@ -253,9 +253,6 @@ function bbencode_second_pass($text, $uid) } // bbencode_second_pass() -// Need to initialize the random numbers only ONCE -mt_srand( (double) microtime() * 1000000); - function make_bbcode_uid() { // Unique ID for this message.. diff --git a/phpBB/search.php b/phpBB/search.php index 306f195979..0c575deb1f 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -692,8 +692,7 @@ else if ( $search_keywords != '' || $search_author != '' || $search_id ) $result_array = serialize($store_search_data); unset($store_search_data); - mt_srand ((double) microtime() * 1000000); - $search_id = mt_rand(); + $search_id = crc32(dss_rand()); $sql = "UPDATE " . SEARCH_TABLE . " SET search_id = $search_id, search_time = $current_time, search_array = '" . str_replace("\'", "''", $result_array) . "'