Merge branch 'srand'
[catagits/FCGI-ProcManager.git] / lib / FCGI / ProcManager.pm
index a04257f..95746a9 100644 (file)
@@ -456,6 +456,10 @@ sub handling_init {
 
   # change the name of this process as it appears in ps(1) output.
   $this->pm_change_process_name("perl-fcgi");
+
+  # Re-srand in case someone called rand before the fork, so that
+  # children get different random numbers.
+  srand;
 }
 
 =head2 pm_pre_dispatch