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 29ac388311..388a3e932a 100644
--- a/random.c
+++ b/random.c
@@ -1479,6 +1479,7 @@ Init_RandomSeedCore(void)
init_seed(&mt);
explicit_bzero(initial_seed, DEFAULT_SEED_LEN);
+ explicit_bzero(&mt, sizeof(mt));
}
static VALUE