зеркало из https://github.com/github/ruby.git
* lib/securerandom.rb: Don't use Array#to_s.
[ruby-core:52058] [Bug #7811] fixed by zzak (Zachary Scott). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e89c029f2b
Коммит
817a96a45d
|
@ -1,3 +1,8 @@
|
|||
Tue Apr 2 18:49:01 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/securerandom.rb: Don't use Array#to_s.
|
||||
[ruby-core:52058] [Bug #7811] fixed by zzak (Zachary Scott).
|
||||
|
||||
Tue Apr 2 17:38:20 2013 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* re.c (rb_reg_to_s): suppress duplicated charclass warning.
|
||||
|
|
|
@ -62,7 +62,7 @@ module SecureRandom
|
|||
if @pid != pid
|
||||
now = Time.now
|
||||
ary = [now.to_i, now.nsec, @pid, pid]
|
||||
OpenSSL::Random.seed(ary.to_s)
|
||||
OpenSSL::Random.seed(ary.join("").to_s)
|
||||
@pid = pid
|
||||
end
|
||||
return OpenSSL::Random.random_bytes(n)
|
||||
|
|
Загрузка…
Ссылка в новой задаче