diff options
author | Damien Miller <djm@mindrot.org> | 2014-09-04 03:46:05 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-09-04 03:46:05 +1000 |
commit | 2a8699f37cc2515e3bc60e0c677ba060f4d48191 (patch) | |
tree | ad7fa4dc41c84cc5b267d5d3314e53dd903c5113 /openbsd-compat/arc4random.c | |
parent | 44988defb1f5e3afe576d86000365e1f07a1b494 (diff) |
- (djm) [openbsd-compat/arc4random.c] Zero seed after keying PRNG
Diffstat (limited to 'openbsd-compat/arc4random.c')
-rw-r--r-- | openbsd-compat/arc4random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/arc4random.c b/openbsd-compat/arc4random.c index fa0d6301..09dbfda1 100644 --- a/openbsd-compat/arc4random.c +++ b/openbsd-compat/arc4random.c @@ -87,7 +87,7 @@ _rs_stir(void) _rs_init(rnd, sizeof(rnd)); } else _rs_rekey(rnd, sizeof(rnd)); - memset(rnd, 0, sizeof(rnd)); + explicit_bzero(rnd, sizeof(rnd)); /* invalidate rs_buf */ rs_have = 0; |