From addb08042c05443e205e9dc60fa7289fc899a37e Mon Sep 17 00:00:00 2001 From: Lufei Date: Thu, 31 Aug 2023 17:07:21 +0800 Subject: [PATCH] * Use mt_rand instead of random_int. --- framework/base/router.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/base/router.class.php b/framework/base/router.class.php index 8d3667f8ac..1d6a12de98 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -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;