[ruby-cvs:59968] kosaki:r52815 (trunk): * random.c (Init_RandomSeed): move all Random::DEFAULT

kosaki at ruby-lang.org kosaki at ruby-lang.org
Tue Dec 1 05:31:33 JST 2015


kosaki	2015-12-01 05:31:31 +0900 (Tue, 01 Dec 2015)

  New Revision: 52815

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52815

  Log:
    * random.c (Init_RandomSeed): move all Random::DEFAULT
      construction bits to Init_RandomSeed2. Random::DEFAULT
      and Ruby internal hashes are no longer shared their seed.
    * random.c (Init_RandomSeed2): ditto. And, kill evil
      rb_obj_reveal() stuff.
    * random.c (init_hashseed): add MT argument.
    * random.c: (init_siphash): ditto.
    * test/ruby/test_rand.rb (TestRand#test_default_seed): new
      test for Random::DEFAULT::seed.

  Modified files:
    trunk/ChangeLog
    trunk/random.c
    trunk/test/ruby/test_rand.rb


More information about the ruby-cvs mailing list