247.patch

Zachary Scott, 02/09/2013 12:12 PM

Download (791 Bytes)

View differences:

lib/securerandom.rb
62 62
      if @pid != pid
63 63
        now = Time.now
64 64
        ary = [now.to_i, now.nsec, @pid, pid]
65
        OpenSSL::Random.seed(ary.to_s)
65
        OpenSSL::Random.seed(ary.join("").to_s)
66 66
        @pid = pid
67 67
      end
68 68
      return OpenSSL::Random.random_bytes(n)
69
-