]> git.mxchange.org Git - mailer.git/blobdiff - inc/rdf.class.php
All database names are now 'back-ticked' and constant _MYSQL_PREFIX is wrapped. Partl...
[mailer.git] / inc / rdf.class.php
index d42bdbff8d0dce5e4ff8552a965f7808137a03d4..477925a21e7ad0ef3df4062ba09818cd813765b1 100644 (file)
@@ -1200,7 +1200,7 @@ class fase4_rdf {
     function _garbage_collection()
     {
         srand((double) microtime() * 1000000);
-        if (rand(1, 100) <= $this->gc_probability) {
+        if (mt_rand(1, 100) <= $this->gc_probability) {
             $dir = dir($this->_cache_dir);
             while($file=$dir->read()) {
                 if (is_file($dir->path.$file) && substr($file, -6, 6) != ".cache" && substr($file, -4, 4) != ".log" && filemtime($dir->path.$file) <= time() - $this->_refresh )  {