use our existing random seeder function
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 21 Aug 2008 11:33:11 +0000 (11:33 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 21 Aug 2008 11:33:11 +0000 (11:33 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13267 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/global.php

index d211773c2e091fe625eff920b0b63367e7ef5512..a5c24d021c82bbd04c9ef189a74d37a314e20ce0 100644 (file)
@@ -544,13 +544,9 @@ function sqsetcookie($sName,$sValue='deleted',$iExpire=0,$sPath="",$sDomain="",$
  * This code is borrowed from Gallery, session.php version 1.53.2.1
  */
 if (!function_exists('session_regenerate_id')) {
-    function make_seed() {
-        list($usec, $sec) = explode(' ', microtime());
-        return (float)$sec + ((float)$usec * 100000);
-    }
 
     function php_combined_lcg() {
-        mt_srand(make_seed());
+        sq_mt_randomize();
         $tv = gettimeofday();
         $lcg['s1'] = $tv['sec'] ^ (~$tv['usec']);
         $lcg['s2'] = mt_rand();