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(-)
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 @@ def worker_atfork_internal(worker)
# 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)
--
EW
--
unsubscribe: [email protected]
archive: https://yhbt.net/yahns-public/