* random.c: Document Random::DEFAULT by @eLobato [Fixes GH-304]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
00096bdf0d
commit
4813d8713c
@ -1,3 +1,7 @@
|
|||||||
|
Mon May 13 10:04:22 2013 Zachary Scott <zachary@zacharyscott.net>
|
||||||
|
|
||||||
|
* random.c: Document Random::DEFAULT by @eLobato [Fixes GH-304]
|
||||||
|
|
||||||
Sun May 12 21:12:42 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sun May 12 21:12:42 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* include/ruby/ruby.h (OFFT2NUM): RUBY_REPLACE_TYPE also defines macro
|
* include/ruby/ruby.h (OFFT2NUM): RUBY_REPLACE_TYPE also defines macro
|
||||||
|
1
random.c
1
random.c
@ -1494,6 +1494,7 @@ Init_Random(void)
|
|||||||
{
|
{
|
||||||
VALUE rand_default = TypedData_Wrap_Struct(rb_cRandom, &random_data_type, &default_rand);
|
VALUE rand_default = TypedData_Wrap_Struct(rb_cRandom, &random_data_type, &default_rand);
|
||||||
rb_gc_register_mark_object(rand_default);
|
rb_gc_register_mark_object(rand_default);
|
||||||
|
/* Direct access to Ruby's Pseudorandom number generator (PRNG). */
|
||||||
rb_define_const(rb_cRandom, "DEFAULT", rand_default);
|
rb_define_const(rb_cRandom, "DEFAULT", rand_default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user