ruby/test
akr 04739ba617 * string.c (rb_memhash): randomize hash to avoid algorithmic
complexity attacks.
  (rb_str_hash): use rb_memhash.

* include/ruby/intern.h (rb_reset_random_seed): declared.

* thread.c (rb_thread_atfork): call rb_reset_random_seed.

* inits.c (rb_call_inits): call Init_RandomSeed at first.

* random.c (seed_initialized): defined.
  (fill_random_seed): extracted from random_seed.
  (make_seed_value): extracted from random_seed.
  (rb_f_rand): initialize random seed at first.
  (initial_seed): defined.
  (Init_RandomSeed): defined.
  (Init_RandomSeed2): defined.
  (rb_reset_random_seed): defined.
  (Init_Random): call Init_RandomSeed2.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-20 02:46:17 +00:00
..
csv * lib/csv.rb: Fixed test failures caused by changes to Ruby. 2007-12-25 05:14:04 +00:00
dbm forgot to modify TestDBM2 and TestGDBM2. 2007-10-24 06:29:59 +00:00
digest * test/digest/test_digest_hmac.rb: added. 2006-10-25 08:16:48 +00:00
drb * test/drb/drbtest.rb (test_07_public_private_protected_missing): 2007-12-19 15:11:37 +00:00
erb * lib/erb.rb (ERB::Compiler::TrimScanner#scan_line): Fix a bug 2008-06-02 07:10:35 +00:00
etc * test/etc/test_etc.rb: avoid infinite loop. [ruby-dev:35158] 2008-06-18 15:34:46 +00:00
fileutils * test/fileutils/fileasserts.rb (assert_equal_timestamp): new assert 2007-11-21 07:40:36 +00:00
gdbm * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create): failed 2008-04-23 06:32:16 +00:00
iconv * test/iconv/utils.rb (default_test): override not to croak. 2008-06-06 09:25:46 +00:00
io/nonblock * test/io/nonblock/test_flush.rb: don't set Thread.abort_on_exception. 2008-05-05 17:18:09 +00:00
json * lib/rexml/doctype.rb, test/rss/test_maker_itunes.rb: replace 2008-01-26 00:42:08 +00:00
logger * lib/rexml/text.rb, lib/rubygems/open-uri.rb, lib/open-uri.rb, 2008-01-23 18:53:52 +00:00
monitor * lib/thread.rb (ConditionVariable#broadcast): use Mutex 2007-02-24 07:01:18 +00:00
net * test/net/http/test_http.rb: compare encodings of two strings before 2008-06-19 14:49:39 +00:00
nkf * ext/nkf/nkf-utf8/{nkf.c, utf8tbl.c}: Update nkf. 2008-01-01 15:22:25 +00:00
openssl * ext/openssl/ossl_ssl_session.c (ossl_ssl_session_initialize): 2008-06-05 11:36:55 +00:00
optparse * test/optparse/test_getopts.rb: changed the class name of test case 2006-10-03 23:53:24 +00:00
ostruct * lib/ostruct.rb: Added OpenStruct#==. 2003-09-25 00:03:11 +00:00
pathname * lib/pathname.rb (Pathname#sub_ext): new method. [ruby-list:44608] 2008-02-13 13:50:31 +00:00
rdoc Import RDoc 2.0.0 r56. 2008-04-26 16:14:19 +00:00
readline * test/readline/test_readline.rb (TestReadline::replace_stdio): 2005-09-22 08:33:05 +00:00
rinda * test/rinda/test_rinda.rb (MockClock#{_forward, forwrd, sleep}): 2007-12-25 05:08:04 +00:00
ripper * parse.y (parser_yylex): should clear parser->tokp as well. 2007-11-19 07:10:09 +00:00
rss * lib/rss/rss.rb (RSS::VERSION), test/rss/test_version.rb: 2008-02-11 08:24:18 +00:00
ruby * string.c (rb_memhash): randomize hash to avoid algorithmic 2008-06-20 02:46:17 +00:00
rubygems Update to RubyGems 1.1.1 r1784 (pre 1.2) 2008-06-19 18:15:26 +00:00
scanf refine previous change. 2007-09-28 18:22:23 +00:00
sdbm use Dir.mktmpdir. 2007-10-24 06:20:31 +00:00
socket use ML ref. for assertion message. 2007-11-18 07:18:56 +00:00
stringio * ext/stringio/stringio.c (strio_init): rewind when reopened. 2008-06-11 17:50:03 +00:00
strscan * test/stringio/test_stringio.rb: add tests to achieve over 95% test 2008-06-05 14:33:01 +00:00
testunit * test/testunit/collector/test_dir.rb: r15825 made it unnecessary to change 2008-06-19 18:20:30 +00:00
uri use ML ref. for assertion message. 2007-11-18 07:18:56 +00:00
webrick test material for r16453. 2008-05-18 13:54:04 +00:00
win32ole modify test according to changing WIN32OLE.codepage behavior. 2008-02-16 04:38:06 +00:00
xmlrpc * lib/xmlrpc/client.rb: fix cookie handling. [ruby-dev:34403] 2008-04-15 14:10:18 +00:00
yaml * lib/yaml/store.rb (YAML::load): modified to support empty 2008-04-11 07:43:31 +00:00
zlib * test/zlib/test_zlib.rb: add tests to achieve over 90% test coverage 2008-06-08 12:51:25 +00:00
inlinetest.rb * Merge YARV 2006-12-31 15:02:22 +00:00
runner.rb * lib/test/unit/collector.rb (collect_file): now deletes paths added 2005-02-17 04:50:49 +00:00
test_delegate.rb add a test for [ruby-dev:34808]. 2008-05-24 01:34:37 +00:00
test_ipaddr.rb * test/test_*.rb: Pathname#parent -> Pathname#dirname. 2004-01-13 04:06:31 +00:00
test_pp.rb * test/test_*.rb: Pathname#parent -> Pathname#dirname. 2004-01-13 04:06:31 +00:00
test_prettyprint.rb * test/test_*.rb: Pathname#parent -> Pathname#dirname. 2004-01-13 04:06:31 +00:00
test_pstore.rb * lib/pstore.rb: replaced by Hongli Lai's faster version. 2008-04-10 07:12:41 +00:00
test_set.rb * test/test_*.rb: Pathname#parent -> Pathname#dirname. 2004-01-13 04:06:31 +00:00
test_shellwords.rb * misc/ruby-mode.el (ruby-expr-beg): support $! at the end of 2005-11-30 04:50:04 +00:00
test_tempfile.rb add tests. 2008-01-07 15:32:07 +00:00
test_time.rb * test/test_*.rb: Pathname#parent -> Pathname#dirname. 2004-01-13 04:06:31 +00:00
test_timeout.rb add tests. 2008-01-07 15:32:07 +00:00
test_tsort.rb * test/test_*.rb: Pathname#parent -> Pathname#dirname. 2004-01-13 04:06:31 +00:00