1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby
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
..
defines.h * file.c (file_expand_path): support for alternative data stream 2008-05-15 06:34:02 +00:00
encoding.h * encoding.c (rb_filesystem_encoding): defined. 2008-06-16 21:28:03 +00:00
intern.h * string.c (rb_memhash): randomize hash to avoid algorithmic 2008-06-20 02:46:17 +00:00
io.h
missing.h * include/ruby/missing.h (cbrt): add declaration. 2008-03-06 05:06:30 +00:00
mvm.h * vm_core.h (struct rb_vm_struct): moved ruby_debug, ruby_verbose, and 2008-06-09 05:18:03 +00:00
node.h * include/ruby/node.h: add new constants for rb_call()'s scope. 2008-04-01 21:30:36 +00:00
oniguruma.h
re.h * include/ruby/re.h (struct rmatch_offset): new struct for character 2008-02-16 20:08:35 +00:00
regex.h
ruby.h * include/ruby/ruby.h (rb_intern): use rb_intern2 with strlen for 2008-06-12 04:46:16 +00:00
signal.h
st.h
util.h * debug.c (ruby_set_debug_option): separated ruby_each_words(). 2008-02-23 21:13:05 +00:00
win32.h * include/ruby/win32.h (pipe): now pipe is textmode. although this 2008-06-18 04:51:08 +00:00