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 1770adf138..3be22a4ec0 100644
--- a/random.c
+++ b/random.c
@@ -387,6 +387,7 @@ rand_init(struct MT *mt, VALUE seed)
len--;
init_by_array(mt, buf, (int)len);
}
+ explicit_bzero(buf, len * sizeof(*buf));
if (buf != buf0) xfree(buf);
return seed;
}