Skip to content

Commit db07738

Browse files
committed
replace uniqid() with random_bytes() to create identifiers
1 parent ddca1d1 commit db07738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Command/Descriptor/HtmlDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function describe(OutputInterface $output, Data $data, array $context, in
5050
$title = '<code>$ </code>'.$context['cli']['command_line'];
5151
$dedupIdentifier = $context['cli']['identifier'];
5252
} else {
53-
$dedupIdentifier = uniqid('', true);
53+
$dedupIdentifier = bin2hex(random_bytes(4));
5454
}
5555

5656
$sourceDescription = '';

0 commit comments

Comments
 (0)