moarrr randomness
This commit is contained in:
parent
2ce9daea94
commit
48ab69ee18
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace BeyondCode\LaravelWebSockets\ClientProviders;
|
||||
|
||||
|
||||
use BeyondCode\LaravelWebSockets\Exceptions\InvalidClient;
|
||||
|
||||
class Client
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ class WebSocketHandler implements MessageComponentInterface
|
|||
|
||||
protected function generateSocketId(ConnectionInterface $connection)
|
||||
{
|
||||
$socketId = sprintf("%d.%d", getmypid(), random_int(1, 100000000));
|
||||
$socketId = sprintf("%d.%d", random_int(1, 100000000), random_int(1, 100000000));
|
||||
|
||||
$connection->socketId = $socketId;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue