diff options
author | Nils Adermann <naderman@naderman.de> | 2005-12-29 18:13:24 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2005-12-29 18:13:24 +0000 |
commit | 85f502a52b31c589f3069141a49413ef2078bbb0 (patch) | |
tree | 78c100100b65643e9991209ee3f195befa1a4649 /phpBB/includes/functions.php | |
parent | 72b3d6ca787a4b7004093c7d339a2d63bcb3d307 (diff) | |
download | forums-85f502a52b31c589f3069141a49413ef2078bbb0.tar forums-85f502a52b31c589f3069141a49413ef2078bbb0.tar.gz forums-85f502a52b31c589f3069141a49413ef2078bbb0.tar.bz2 forums-85f502a52b31c589f3069141a49413ef2078bbb0.tar.xz forums-85f502a52b31c589f3069141a49413ef2078bbb0.zip |
This was causing trouble on ppc, I kept getting the same random string (probably the passed value was too big). And "As of PHP 4.2.0, there is no need to seed the random number generator with srand() or mt_srand() as this is now done automatically." so I removed it completely.
git-svn-id: file:///svn/phpbb/trunk@5395 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 7f816d9b1c..7bc9580c33 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -123,9 +123,6 @@ function gen_rand_string($num_chars) { $chars = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9'); - list($sec, $usec) = explode(' ', microtime()); - mt_srand((float) $sec + ((float) $usec * 100000)); - $max_chars = sizeof($chars) - 1; $rand_str = ''; for ($i = 0; $i < $num_chars; $i++) |