From 4431e5bf74ffe47358e713340f8c47747fec0d1d Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Thu, 21 Jun 2018 11:25:21 -0400 Subject: add comment --- Bugzilla/Quantum/Plugin/Glue.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Bugzilla/Quantum/Plugin/Glue.pm b/Bugzilla/Quantum/Plugin/Glue.pm index ef4a291f8..e1c78f07b 100644 --- a/Bugzilla/Quantum/Plugin/Glue.pm +++ b/Bugzilla/Quantum/Plugin/Glue.pm @@ -38,6 +38,12 @@ sub register { }, ); + # Make sure each httpd child receives a different random seed (bug 476622). + # Bugzilla::RNG has one srand that needs to be called for + # every process, and Perl has another. (Various Perl modules still use + # the built-in rand(), even though we never use it in Bugzilla itself, + # so we need to srand() both of them.) + # Also, ping the dbh to force a reconnection. Mojo::IOLoop->next_tick( sub { Bugzilla::RNG::srand(); -- cgit v1.2.3-24-g4f1b