summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
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 028820d861..5ac7868bf1 100644
--- a/random.c
+++ b/random.c
@@ -114,6 +114,7 @@ rb_f_srand(argc, argv, obj)
VALUE a;
unsigned int seed, old;
+ rb_secure(4);
if (rb_scan_args(argc, argv, "01", &a) == 0) {
static int n = 0;
struct timeval tv;