summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'random.c')
-rw-r--r--random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/random.c b/random.c
index ed21c7ec2b..eaccbab6d7 100644
--- a/random.c
+++ b/random.c
@@ -75,6 +75,6 @@ Init_Random()
{
extern VALUE C_Kernel;
- rb_define_func(C_Kernel, "srand", Fsrand, -2);
- rb_define_func(C_Kernel, "rand", Frand, 1);
+ rb_define_method(C_Kernel, "srand", Fsrand, -2);
+ rb_define_method(C_Kernel, "rand", Frand, 1);
}