about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-12-28 07:39:51 +0000
committerEric Wong <e@80x24.org>2018-12-28 07:39:51 +0000
commit09a4d6d4ac205f43109a51ccb0a1db815ff7242b (patch)
tree055680487f859fe06ab8cea11ca30c4c803a9e0c
parentc8b260b6d4334c47704a1fa365942055508f1074 (diff)
downloadyahns-09a4d6d4ac205f43109a51ccb0a1db815ff7242b.tar.gz
Ruby itself has tests for RNG reseeding at fork, so no need for
belt-and-suspenders code on our end.
-rw-r--r--lib/yahns/server_mp.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/yahns/server_mp.rb b/lib/yahns/server_mp.rb
index 7b2f9b7..8752a08 100644
--- a/lib/yahns/server_mp.rb
+++ b/lib/yahns/server_mp.rb
@@ -31,8 +31,6 @@ module Yahns::ServerMP # :nodoc:
     # daemon_pipe may be true for non-initial workers
     @daemon_pipe = @daemon_pipe.close if @daemon_pipe.respond_to?(:close)
 
-    srand # in case this pops up again: https://bugs.ruby-lang.org/issues/4338
-
     # 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)