1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
naruse 2011-04-20 16:31:25 +00:00
parent 934c6b4870
commit 0efb462a50
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Thu Apr 21 01:30:02 2011 NARUSE, Yui <naruse@ruby-lang.org>
* random.c (rb_f_srand): fix rdoc: srand(0)'s 0 is a seed.
[ruby-core:35833] fixes #4590
Thu Apr 21 01:01:28 2011 Masaya Tarui <tarui@ruby-lang.org>
* win32/win32.c (CreateChild): maximum length of lpCommandLine is

View file

@ -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