1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

3 commits

Author SHA1 Message Date
shyouhei
16daf9b914 merge revision(s) 32741:
* lib/securerandom.rb: call OpenSSL::Random.seed at the
	  SecureRandom.random_bytes call.
	  based on the patch by Masahiro Tomita.  [ruby-dev:44270]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@34003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-10 12:17:33 +00:00
nahi
eaf6ad66ab backport r32050 by akr
* lib/securerandom.rb (SecureRandom.random_bytes): modify PRNG state
  to prevent random number sequence repeatation at forked
  child process which has same pid.
  reported by Eric Wong.  [ruby-core:35765]

backport r32124 by nahi

* test/test_securerandom.rb: Add testcase.  This testcase does NOT aim
  to test cryptographically strongness and randomness.  It includes
  the test for PID recycle issue of OpenSSL described in #4579 but
  it's disabled by default.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@32128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-16 14:22:36 +00:00
akr
f1a422e837 * lib/securerandom.rb: new file.
* lib/cgi/session.rb (create_new_id): use securerandom if available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-10 14:37:42 +00:00