From 09a4d6d4ac205f43109a51ccb0a1db815ff7242b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 28 Dec 2018 07:39:51 +0000 Subject: server_mp: remove redundant srand call Ruby itself has tests for RNG reseeding at fork, so no need for belt-and-suspenders code on our end. --- lib/yahns/server_mp.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib') 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) -- cgit v1.2.3-24-ge0c7