aboutsummaryrefslogtreecommitdiffstats
path: root/lib/securerandom.rb
diff options
context:
space:
mode:
authorrhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-24 11:33:06 +0000
committerrhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-24 11:33:06 +0000
commitbde15461c90aa7d2bb469d2088dbb68b6cfde899 (patch)
treecbf284f1050840fe8d70fa265a3021b332c4986a /lib/securerandom.rb
parent7039d452827a25d1da4253d5318f451d27f34076 (diff)
downloadruby-bde15461c90aa7d2bb469d2088dbb68b6cfde899.tar.gz
securerandom: fix up r57384
SecureRandom.gen_random_openssl still refers to Random.raw_seed, which is renamed to Random.urandom by r57384. [Bug #9569] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/securerandom.rb')
-rw-r--r--lib/securerandom.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/securerandom.rb b/lib/securerandom.rb
index 3f8845ea38..6a5720c44e 100644
--- a/lib/securerandom.rb
+++ b/lib/securerandom.rb
@@ -90,7 +90,7 @@ module SecureRandom
unless @pid == pid
now = Process.clock_gettime(Process::CLOCK_REALTIME, :nanosecond)
OpenSSL::Random.random_add([now, @pid, pid].join(""), 0.0)
- seed = Random.raw_seed(16)
+ seed = Random.urandom(16)
if (seed)
OpenSSL::Random.random_add(seed, 16)
end