From 47aa1b4001f1a7e76f6bea6c2e41c457b92abe51 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 1 Dec 2025 13:20:45 +0100 Subject: [PATCH] Update ticket.lib.php --- htdocs/core/lib/ticket.lib.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/core/lib/ticket.lib.php b/htdocs/core/lib/ticket.lib.php index 2e3d4564d8e..2f14d6bd790 100644 --- a/htdocs/core/lib/ticket.lib.php +++ b/htdocs/core/lib/ticket.lib.php @@ -230,11 +230,9 @@ function generate_random_id($car = 16) for ($i = 0; $i < $car; $i++) { try { - // Cela ne dépend PAS de microtime() et ne nécessite pas de srand/seed. $key = random_int(0, $max); } catch (\Exception $e) { - // Fallback de secours extrême si la source d'entropie système est illisible - // On laisse PHP gérer le seeding automatiquement ici (plus de mt_srand manuel) + // Fallback. We let PHP makes the seed automatically (no manual mt_srand) $key = mt_rand(0, $max); } $string .= $chaine[$key];