diff options
| -rw-r--r-- | adodb.inc.php | 5 | ||||
| -rw-r--r-- | session/crypt.inc.php | 5 | ||||
| -rw-r--r-- | session/old/crypt.inc.php | 2 |
3 files changed, 0 insertions, 12 deletions
diff --git a/adodb.inc.php b/adodb.inc.php index d15ec50f..c6145751 100644 --- a/adodb.inc.php +++ b/adodb.inc.php @@ -237,11 +237,6 @@ if (!defined('_ADODB_LAYER')) { } } - - // Initialize random number generator for randomizing cache flushes - // -- note Since PHP 4.2.0, the seed becomes optional and defaults to a random value if omitted. - srand(((double)microtime())*1000000); - /** * ADODB version as a string. */ diff --git a/session/crypt.inc.php b/session/crypt.inc.php index 1468cb1a..94aa2831 100644 --- a/session/crypt.inc.php +++ b/session/crypt.inc.php @@ -16,7 +16,6 @@ class MD5Crypt{ function Encrypt($txt,$key) { - srand((double)microtime()*1000000); $encrypt_key = md5(rand(0,32000)); $ctr=0; $tmp = ""; @@ -45,7 +44,6 @@ class MD5Crypt{ function RandPass() { $randomPassword = ""; - srand((double)microtime()*1000000); for($i=0;$i<8;$i++) { $randnumber = rand(48,120); @@ -83,7 +81,6 @@ class SHA1Crypt{ function Encrypt($txt,$key) { - srand((double)microtime()*1000000); $encrypt_key = sha1(rand(0,32000)); $ctr=0; $tmp = ""; @@ -133,8 +130,6 @@ class SHA1Crypt{ function RandPass() { $randomPassword = ""; - srand((double)microtime()*1000000); - for($i=0;$i<8;$i++) { diff --git a/session/old/crypt.inc.php b/session/old/crypt.inc.php index 9c347db0..1ce75feb 100644 --- a/session/old/crypt.inc.php +++ b/session/old/crypt.inc.php @@ -16,7 +16,6 @@ class MD5Crypt{ function Encrypt($txt,$key) { - srand((double)microtime()*1000000); $encrypt_key = md5(rand(0,32000)); $ctr=0; $tmp = ""; @@ -45,7 +44,6 @@ class MD5Crypt{ function RandPass() { $randomPassword = ""; - srand((double)microtime()*1000000); for($i=0;$i<8;$i++) { $randnumber = rand(48,120); |
