aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--random.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/random.c b/random.c
index a3476d5203..f9f087ce5a 100644
--- a/random.c
+++ b/random.c
@@ -600,9 +600,12 @@ make_seed_value(const uint32_t *ptr)
static VALUE
random_seed(void)
{
+ VALUE v;
uint32_t buf[DEFAULT_SEED_CNT];
fill_random_seed(buf);
- return make_seed_value(buf);
+ v = make_seed_value(buf);
+ explicit_bzero(buf, DEFAULT_SEED_LEN);
+ return v;
}
/*