From 43ac79ddd46e7f78a1f8841da856a27133d45e46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Mon, 17 Oct 2022 17:01:55 +0200 Subject: [PATCH] microtime return float --- core/class/template.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/class/template.class.php b/core/class/template.class.php index 3b2a0ff3..339c51b3 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -78,9 +78,9 @@ class template } // Tirage des nombres - mt_srand((float) microtime() * 1000000); + mt_srand( microtime(true) * 1000000); $firstNumber = mt_rand(1, $limit); - mt_srand((float) microtime() * 1000000); + mt_srand( microtime(true) * 1000000); $secondNumber = mt_rand(1, $limit); // Permutation si addition ou soustraction