From: kink Date: Wed, 15 Jan 2003 15:49:23 +0000 (+0000) Subject: Obsolete code because crc32() does exist in our minimum php requirements. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=0795e24071b2d8d2a24ee7b75d5b1b6b36b123dc Obsolete code because crc32() does exist in our minimum php requirements. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4424 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/strings.php b/functions/strings.php index ff47b17b..b4d1a540 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -284,24 +284,7 @@ function sq_mt_seed($Val) { $Max = mt_getrandmax(); if (! is_int($Val)) { - if (function_exists('crc32')) { $Val = crc32($Val); - } else { - $Str = $Val; - $Pos = 0; - $Val = 0; - $Mask = $Max / 2; - $HighBit = $Max ^ $Mask; - while ($Pos < strlen($Str)) { - if ($Val & $HighBit) { - $Val = (($Val & $Mask) << 1) + 1; - } else { - $Val = ($Val & $Mask) << 1; - } - $Val ^= $Str[$Pos]; - $Pos ++; - } - } } if ($Val < 0) {