diff options
-rw-r--r-- | lib/securerandom.rb | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -56,6 +56,10 @@ module SecureRandom now = Process.clock_gettime(Process::CLOCK_REALTIME, :nanosecond) ary = [now, @pid, pid] OpenSSL::Random.random_add(ary.join("").to_s, 0.0) @pid = pid end return OpenSSL::Random.random_bytes(n) |