summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-05-30 11:21:40 +0000
committerEric Wong <e@80x24.org>2018-07-23 17:11:54 +0000
commit440dd1ff1b8b63813998261d5d836b74b69a4109 (patch)
treecb14d6da11d29f4f30e13c835da4eca5801578c0
parent6802a50bbb68dd5450749d72f053a56560c19d89 (diff)
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.
-rw-r--r--lib/unicorn/http_server.rb3
1 files changed, 0 insertions, 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)