summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-13 01:07:50 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-13 01:07:50 +0000
commit4813d8713cd88fa8aa8d403d5d0eb84d1ad73ac9 (patch)
tree487add526b04fd2aa7094971dd6605b6f3cf2013 /random.c
parent00096bdf0dfd2f98f9265449a17f23374975eb3c (diff)
* 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
Diffstat (limited to 'random.c')
-rw-r--r--random.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/random.c b/random.c
index da83c2c867..8f8a7f33a8 100644
--- a/random.c
+++ b/random.c
@@ -1494,6 +1494,7 @@ Init_Random(void)
{
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);
}