From 440dd1ff1b8b63813998261d5d836b74b69a4109 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 30 May 2018 11:21:40 +0000 Subject: remove random seed reset atfork It's not unicorn 6, yet, but we dropped Ruby 1.8 support at unicorn 5. Stable Ruby 1.9+ releases have always reseeded the PRNG at fork. --- lib/unicorn/http_server.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index bbbca6c..485cf12 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -520,9 +520,6 @@ class Unicorn::HttpServer Unicorn::Configurator::RACKUP.clear @ready_pipe = @init_listeners = @before_exec = @before_fork = nil - # http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/36450 - srand # remove in unicorn 6 - # The OpenSSL PRNG is seeded with only the pid, and apps with frequently # dying workers can recycle pids OpenSSL::Random.seed(rand.to_s) if defined?(OpenSSL::Random) -- cgit v1.2.3-24-ge0c7