Skip to content

Commit 84c3909

Browse files
committed
Add comment on the amount of entropy
1 parent 4d3b0a3 commit 84c3909

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/XML/Utils/Random.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ class Random
1414
{
1515
/**
1616
* The fixed length of random identifiers.
17+
*
18+
* (43 - 1) / 2 = 21 → random_bytes(21) → 168 bits
1719
*/
1820
public const int ID_LENGTH = 43;
1921

0 commit comments

Comments
 (0)