Project

General

Profile

« Previous | Next » 

Revision 237fc688

Added by yugui (Yuki Sonoda) over 15 years ago

merges r26936 from trunk into ruby_1_9_1 and little refactoring.

  • random.c (rb_reset_random_seed): set seed in this. [ruby-core:28655]
    --

  • random.c: refactoring.

  • random.c (rand_srand): a new function that wraps
    rand_init and (re)initialization of the random seed as
    a VALUE.

  • random.c (genrand_int32, genrand_real, rb_f_rand,
    rb_f_srand): using rand_srand.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@28511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e