diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-15 20:56:08 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-15 20:56:08 +0000 |
commit | c37e0b8f04d00fa99b0acc067308945879171869 (patch) | |
tree | 2bf2f4384af6caf7000ad63710e6a98dcaa67f71 /random.c | |
parent | ede8000e64f997af26950e6f3ab2108127ed02a4 (diff) | |
parent | 48df58723c7ecc386125523cd9652e0db1d82272 (diff) |
sorry. I made wrong tags.v1_8_5_66
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_8_5_66@12998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -310,8 +310,8 @@ random_seed() * srand(number=0) => old_seed * * Seeds the pseudorandom number generator to the value of - * <i>number</i>.<code>to_i.abs</code>. If <i>number</i> is omitted, - * seeds the generator using a combination of the time, the + * <i>number</i>.<code>to_i.abs</code>. If <i>number</i> is omitted + * or zero, seeds the generator using a combination of the time, the * process id, and a sequence number. (This is also the behavior if * <code>Kernel::rand</code> is called without previously calling * <code>srand</code>, but without the sequence.) By setting the seed @@ -481,7 +481,6 @@ rb_f_rand(argc, argv, obj) default: vmax = rb_Integer(vmax); if (TYPE(vmax) == T_BIGNUM) goto bignum; - /* fall through */ case T_FIXNUM: max = FIX2LONG(vmax); break; |