diff options
Diffstat (limited to 'lib/securerandom.rb')
-rw-r--r-- | lib/securerandom.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/securerandom.rb b/lib/securerandom.rb index 198f273c88..c2eddbd5a3 100644 --- a/lib/securerandom.rb +++ b/lib/securerandom.rb @@ -54,8 +54,7 @@ module SecureRandom pid = $$ unless @pid == pid now = Process.clock_gettime(Process::CLOCK_REALTIME, :nanosecond) - ary = [now, @pid, pid] - OpenSSL::Random.random_add(ary.join("").to_s, 0.0) + OpenSSL::Random.random_add([now, @pid, pid].join(""), 0.0) seed = Random.raw_seed(16) if (seed) OpenSSL::Random.random_add(seed, 16) |