Browse Source

Update Worker.php

walkor 7 years ago
parent
commit
8d3ab8668a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Worker.php

+ 2 - 0
Worker.php

@@ -1339,6 +1339,8 @@ class Worker
             static::$_idMap[$worker->workerId][$id]   = $pid;
         } // For child processes.
         elseif (0 === $pid) {
+            srand();
+            mt_srand();
             if ($worker->reusePort) {
                 $worker->listen();
             }