From 21a4b7217cdeb679625628963c721b75a84dc771 Mon Sep 17 00:00:00 2001
From: Matthieu Marcillaud <marcimat@rezo.net>
Date: Wed, 9 Nov 2022 11:15:23 +0100
Subject: [PATCH] =?UTF-8?q?fix:=20Notice=20PHP=20:=E2=80=AFConversion=20`i?=
 =?UTF-8?q?nt`=20pour=20`rand()`?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Refs: #4
---
 ecran_securite.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ecran_securite.php b/ecran_securite.php
index 42236fc..98ee6a8 100644
--- a/ecran_securite.php
+++ b/ecran_securite.php
@@ -704,7 +704,7 @@ if (
 			and $load = floatval($load))
 	)
 	and $load > _ECRAN_SECURITE_LOAD // eviter l'evaluation suivante si de toute facon le load est inferieur a la limite
-	and rand(0, $load * $load) > _ECRAN_SECURITE_LOAD * _ECRAN_SECURITE_LOAD
+	and rand(0, (int) ($load * $load)) > _ECRAN_SECURITE_LOAD * _ECRAN_SECURITE_LOAD
 ) {
 	//https://webmasters.stackexchange.com/questions/65674/should-i-return-a-429-or-503-status-code-to-a-bot
 	header("HTTP/1.0 429 Too Many Requests");
-- 
GitLab