diff options
Diffstat (limited to 'lib/securerandom.rb')
-rw-r--r-- | lib/securerandom.rb | 2 |
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 |