diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2020-05-18 15:00:17 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2020-05-18 15:00:17 +0000 |
commit | 5fc1374d3e6856ad048d5615dca25410228c1e79 (patch) | |
tree | 6fced3e944a01a062b8ae3434999fcea5454b5df /sys | |
parent | c92bd873da8d1639a18b0633401ddaba404afba4 (diff) |
During the rekey operation, we feedback 1 word to the lowest level.
But it was a constant, that is really silly. Pass back the first
word from the middle layer.
ok visa
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/rnd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c index 8a315c65f4b..586b269df2b 100644 --- a/sys/dev/rnd.c +++ b/sys/dev/rnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rnd.c,v 1.212 2020/05/16 19:07:04 deraadt Exp $ */ +/* $OpenBSD: rnd.c,v 1.213 2020/05/18 15:00:16 deraadt Exp $ */ /* * Copyright (c) 2011 Theo de Raadt. @@ -323,7 +323,7 @@ extract_entropy(u_int8_t *buf) memcpy(buf, digest, EBUFSIZE); /* Modify pool so next hash will produce different results */ - enqueue_randomness(EBUFSIZE); + enqueue_randomness(extract_pool[0]); dequeue_randomness(NULL); /* Wipe data from memory */ |