Better randomizer chossen (rand() does only create 32767 different numbers under...
[mailer.git] / mailid_top.php
index 0c54c6fc9bf20312f3244cb02962932e897da64e..5504788e82f76030f65c2bbdc1187be4a2f427df 100644 (file)
@@ -44,7 +44,7 @@ $GLOBALS['module'] = "mailid";  $CSS = 0;
 // Load the required file(s)
 require ("inc/config.php");
 
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed')))
+if (isBooleanConstantAndTrue('mxchange_installed'))
 {
        // Is the extension active
        if (!EXT_IS_ACTIVE("mailid", true)) {
@@ -322,7 +322,7 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
                                                                        define('_UID_VALUE' , $url_uid );
                                                                        define('_TYPE_VALUE', $type);
                                                                        define('_DATA_VALUE', $DATA);
-                                                                       define('_RAND_VALUE', rand(0, 99999));
+                                                                       define('_RAND_VALUE', mt_rand(0, 99999));
                                                                        define('_TEMPLATE_BANNER', LOAD_TEMPLATE("mailid_banner", true));
 
                                                                        // Load template