From 84c39098a9bc504f57fbe79724d8575c8ec56e9e Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Wed, 17 Dec 2025 17:29:04 +0100 Subject: [PATCH] Add comment on the amount of entropy --- src/XML/Utils/Random.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/XML/Utils/Random.php b/src/XML/Utils/Random.php index b3ad927c..d10aaf58 100644 --- a/src/XML/Utils/Random.php +++ b/src/XML/Utils/Random.php @@ -14,6 +14,8 @@ class Random { /** * The fixed length of random identifiers. + * + * (43 - 1) / 2 = 21 → random_bytes(21) → 168 bits */ public const int ID_LENGTH = 43;