ruby-changes:45634
From: rhe <ko1@a...>
Date: Fri, 24 Feb 2017 20:33:12 +0900 (JST)
Subject: [ruby-changes:45634] rhe:r57707 (trunk): securerandom: fix up r57384
rhe 2017-02-24 20:33:06 +0900 (Fri, 24 Feb 2017) New Revision: 57707 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57707 Log: securerandom: fix up r57384 SecureRandom.gen_random_openssl still refers to Random.raw_seed, which is renamed to Random.urandom by r57384. [Bug #9569] Modified files: trunk/lib/securerandom.rb Index: lib/securerandom.rb =================================================================== --- lib/securerandom.rb (revision 57706) +++ lib/securerandom.rb (revision 57707) @@ -90,7 +90,7 @@ module SecureRandom https://github.com/ruby/ruby/blob/trunk/lib/securerandom.rb#L90 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/