summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-06-21 17:25:21 +0200
committerDylan William Hardison <dylan@hardison.net>2018-06-28 22:41:59 +0200
commit4431e5bf74ffe47358e713340f8c47747fec0d1d (patch)
tree32ffb07cd46f2b6237ec9c93db5afc12b569d115 /Bugzilla
parent3e390abcc1781fc64bc55e7a36a175d0fd9deeb4 (diff)
downloadbugzilla-4431e5bf74ffe47358e713340f8c47747fec0d1d.tar.gz
bugzilla-4431e5bf74ffe47358e713340f8c47747fec0d1d.tar.xz
add comment
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Quantum/Plugin/Glue.pm6
1 files changed, 6 insertions, 0 deletions
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();