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

ruby-changes:28625

From: zzak <ko1@a...>
Date: Mon, 13 May 2013 10:08:49 +0900 (JST)
Subject: [ruby-changes:28625] zzak:r40677 (trunk): * random.c: Document Random::DEFAULT by @eLobato [Fixes GH-304]

zzak	2013-05-13 10:07:50 +0900 (Mon, 13 May 2013)

  New Revision: 40677

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

  Log:
    * random.c: Document Random::DEFAULT by @eLobato [Fixes GH-304]

  Modified files:
    trunk/ChangeLog
    trunk/random.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40676)
+++ ChangeLog	(revision 40677)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon May 13 10:04:22 2013  Zachary Scott  <zachary@z...>
+
+	* random.c: Document Random::DEFAULT by @eLobato [Fixes GH-304]
+
 Sun May 12 21:12:42 2013  Nobuyoshi Nakada  <nobu@r...>
 
 	* include/ruby/ruby.h (OFFT2NUM): RUBY_REPLACE_TYPE also defines macro
Index: random.c
===================================================================
--- random.c	(revision 40676)
+++ random.c	(revision 40677)
@@ -1494,6 +1494,7 @@ Init_Random(void) https://github.com/ruby/ruby/blob/trunk/random.c#L1494
     {
 	VALUE rand_default = TypedData_Wrap_Struct(rb_cRandom, &random_data_type, &default_rand);
 	rb_gc_register_mark_object(rand_default);
+	/* Direct access to Ruby's Pseudorandom number generator (PRNG). */
 	rb_define_const(rb_cRandom, "DEFAULT", rand_default);
     }
 

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

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