Project

General

Profile

« Previous | Next » 

Revision ad949e8f

Added by nobu (Nobuyoshi Nakada) about 9 years ago

random.c: seed conversion

  • random.c (rand_init): random_seed() always returns an Integer,
    no conversion for it.

  • random.c (random_init, rb_f_srand): convert the given seed to an
    Integer.

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