projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use our existing random seeder function
[squirrelmail.git]
/
functions
/
global.php
diff --git
a/functions/global.php
b/functions/global.php
index d211773c2e091fe625eff920b0b63367e7ef5512..a5c24d021c82bbd04c9ef189a74d37a314e20ce0 100644
(file)
--- a/
functions/global.php
+++ b/
functions/global.php
@@
-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')) {
* 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() {
function php_combined_lcg() {
-
mt_srand(make_seed()
);
+
sq_mt_randomize(
);
$tv = gettimeofday();
$lcg['s1'] = $tv['sec'] ^ (~$tv['usec']);
$lcg['s2'] = mt_rand();
$tv = gettimeofday();
$lcg['s1'] = $tv['sec'] ^ (~$tv['usec']);
$lcg['s2'] = mt_rand();