Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 692e216

Browse files
committed
replace uniqid() with random_bytes() to create identifiers
1 parent 12f7a93 commit 692e216

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

IqsmsTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected function doSend(MessageInterface $message): SentMessage
6161
'phone' => $message->getPhone(),
6262
'text' => $message->getSubject(),
6363
'sender' => $message->getFrom() ?: $this->from,
64-
'clientId' => uniqid('', true),
64+
'clientId' => bin2hex(random_bytes(4)),
6565
],
6666
],
6767
'login' => $this->login,

0 commit comments

Comments
 (0)