diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-16 14:22:36 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-16 14:22:36 +0000 |
commit | eaf6ad66ab413765dd8d92e4fb3fcd06f138109e (patch) | |
tree | 40ecc3b485034be0fea6ccdbb33a42065fa80c56 /regex.h | |
parent | 61ac67c14b03d52826b08ce89bb03a188dbfd6c3 (diff) |
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
Diffstat (limited to 'regex.h')
0 files changed, 0 insertions, 0 deletions