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];