summaryrefslogtreecommitdiff
path: root/lib
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
commita0acd82f2af3278bcdba3df33a13e4604d5d68fc (patch)
treecbf284f1050840fe8d70fa265a3021b332c4986a /lib
parent8c440619289b4e20c7b6b0e1b1a5a5c9a4252530 (diff)
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')
-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