* Use mt_rand instead of random_int.

This commit is contained in:
Lufei
2023-08-31 17:07:21 +08:00
parent fd8a6f5e84
commit addb08042c
+1 -1
View File
@@ -2994,7 +2994,7 @@ class baseRouter
* 删除设定时间之前的日志。
* Delete the log before the set time.
**/
if(random_int(0, 10) == 1)
if(mt_rand(0, 10) == 1)
{
$logDays = $this->config->framework->logDays ?? 14;
$dayTime = time() - $logDays * 24 * 3600;