diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-20 16:31:25 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-20 16:31:25 +0000 |
commit | 0efb462a503e0a24cb99226acf357d2613827488 (patch) | |
tree | 4781b2f947fe7a64a135acd72c9836730248c0a1 /random.c | |
parent | 934c6b48708664ba53809c002407f654949a9bb4 (diff) |
* random.c (rb_f_srand): fix rdoc: srand(0)'s 0 is a seed.
[ruby-core:35833] fixes #4590
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -760,8 +760,8 @@ random_load(VALUE obj, VALUE dump) * srand(number=0) -> old_seed * * Seeds the pseudorandom number generator to the value of - * <i>number</i>. If <i>number</i> is omitted - * or zero, seeds the generator using a combination of the time, the + * <i>number</i>. If <i>number</i> is omitted, + * 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 |