X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Frdf.class.php;h=477925a21e7ad0ef3df4062ba09818cd813765b1;hb=930830936f3d53fcfde60d14a408c5add6679a22;hp=d42bdbff8d0dce5e4ff8552a965f7808137a03d4;hpb=798486d19f1eef4f1375d4d9b3d3a216e815fb74;p=mailer.git diff --git a/inc/rdf.class.php b/inc/rdf.class.php index d42bdbff8d..477925a21e 100644 --- a/inc/rdf.class.php +++ b/inc/rdf.class.php @@ -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 ) {