moarrr randomness
This commit is contained in:
parent
48ab69ee18
commit
7fdcbe13ef
|
|
@ -55,7 +55,7 @@ class WebSocketHandler implements MessageComponentInterface
|
||||||
|
|
||||||
protected function generateSocketId(ConnectionInterface $connection)
|
protected function generateSocketId(ConnectionInterface $connection)
|
||||||
{
|
{
|
||||||
$socketId = sprintf("%d.%d", random_int(1, 100000000), random_int(1, 100000000));
|
$socketId = sprintf("%d.%d", random_int(1, 1000000000), random_int(1, 1000000000));
|
||||||
|
|
||||||
$connection->socketId = $socketId;
|
$connection->socketId = $socketId;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue