[前][次][番号順一覧][スレッド一覧]

ruby-changes:19277

From: naruse <ko1@a...>
Date: Thu, 21 Apr 2011 01:31:34 +0900 (JST)
Subject: [ruby-changes:19277] Ruby:r31316 (trunk): * random.c (rb_f_srand): fix rdoc: srand(0)'s 0 is a seed.

naruse	2011-04-21 01:31:25 +0900 (Thu, 21 Apr 2011)

  New Revision: 31316

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31316

  Log:
    * random.c (rb_f_srand): fix rdoc: srand(0)'s 0 is a seed.
      [ruby-core:35833] fixes #4590

  Modified files:
    trunk/ChangeLog
    trunk/random.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31315)
+++ ChangeLog	(revision 31316)
@@ -1,3 +1,8 @@
+Thu Apr 21 01:30:02 2011  NARUSE, Yui  <naruse@r...>
+
+	* 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@r...>
 
 	* win32/win32.c (CreateChild): maximum length of lpCommandLine is
Index: random.c
===================================================================
--- random.c	(revision 31315)
+++ random.c	(revision 31316)
@@ -760,8 +760,8 @@
  *     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]