Skip to content

Commit cb387b2

Browse files
committed
Increase uniqid entropy
While we don't have that many tokens in play at any one time, this will increase the likelihood that the tokens are unique.
1 parent 56a0cfb commit cb387b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Guard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ protected function createToken(): string
215215
public function generateToken(): array
216216
{
217217
// Generate new CSRF token
218-
$name = uniqid($this->prefix);
218+
$name = uniqid($this->prefix, true);
219219
$value = $this->createToken();
220220
$this->saveTokenToStorage($name, $value);
221221

0 commit comments

Comments
 (0)