diff options
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |