moarrr randomness

This commit is contained in:
freek 2018-11-28 20:36:06 +01:00
parent 2ce9daea94
commit 48ab69ee18
2 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@
namespace BeyondCode\LaravelWebSockets\ClientProviders;
use BeyondCode\LaravelWebSockets\Exceptions\InvalidClient;
class Client

View File

@ -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;