diff options
author | 2020-05-18 15:00:16 +0000 | |
---|---|---|
committer | 2020-05-18 15:00:16 +0000 | |
commit | f581b7a6f36c4fdd2645ca50b8a9a816173982db (patch) | |
tree | cfca53ec2a6e8e242b5a10ed1c1f5f5ca6657801 | |
parent | httpd: add a "dark mode" in directory listings and error pages (diff) | |
download | wireguard-openbsd-f581b7a6f36c4fdd2645ca50b8a9a816173982db.tar.xz wireguard-openbsd-f581b7a6f36c4fdd2645ca50b8a9a816173982db.zip |
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
-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 */ |