Skip to content

Commit bb0a8b7

Browse files
committed
replace uniqid() with random_bytes() to create identifiers
1 parent 3ff7583 commit bb0a8b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Process.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ private function buildShellCommandline(string|array $commandline): string
15431543
private function prepareWindowsCommandLine(string|array $cmd, array &$env): string
15441544
{
15451545
$cmd = $this->buildShellCommandline($cmd);
1546-
$uid = uniqid('', true);
1546+
$uid = bin2hex(random_bytes(4));
15471547
$cmd = preg_replace_callback(
15481548
'/"(?:(
15491549
[^"%!^]*+

0 commit comments

Comments
 (0)