From 0efb462a503e0a24cb99226acf357d2613827488 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 20 Apr 2011 16:31:25 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ random.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2ffd04b0b7..0c3fbea8c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Apr 21 01:30:02 2011 NARUSE, Yui + + * 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 * win32/win32.c (CreateChild): maximum length of lpCommandLine is diff --git a/random.c b/random.c index d982744dab..15a7f51a06 100644 --- a/random.c +++ b/random.c @@ -760,8 +760,8 @@ random_load(VALUE obj, VALUE dump) * srand(number=0) -> old_seed * * Seeds the pseudorandom number generator to the value of - * number. If number is omitted - * or zero, seeds the generator using a combination of the time, the + * number. If number is omitted, + * seeds the generator using a combination of the time, the * process id, and a sequence number. (This is also the behavior if * Kernel::rand is called without previously calling * srand, but without the sequence.) By setting the seed