Better RNG choosen (mt_rand()), writing initial secret file fixed, thanks to profi...
[mailer.git] / inc / functions.php
index 6472c604482a1bdffe92f20d6e89ded56d5ee194..df47862705423e1d7f52da718881317d3ff6e095 100644 (file)
@@ -2002,7 +2002,7 @@ function generateHash ($plainText, $salt = "") {
                $keys   = SITE_KEY.":".DATE_KEY.":".$_CONFIG['secret_key'].":".$_CONFIG['file_hash'].":".date("d-m-Y (l-F-T)", bigintval($_CONFIG['patch_ctime'])).":".$_CONFIG['master_salt'];
 
                // Additional data
-               $data = $plainText.":".uniqid(rand(), true).":".time();
+               $data = $plainText.":".uniqid(mt_rand(), true).":".time();
 
                // Calculate number for generating the code
                $a = time() + _ADD - 1;