summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2016-09-22 22:04:02 +0000
committerderaadt <deraadt@openbsd.org>2016-09-22 22:04:02 +0000
commitbc29f90868baddf213c02c68e9e0edefd6af0be6 (patch)
tree7234bd618ab7b6a820069dc7679f799891b5b490
parentSimplify mips64 GOTSYM bits to eliminate a couple temp files (diff)
downloadwireguard-openbsd-bc29f90868baddf213c02c68e9e0edefd6af0be6.tar.xz
wireguard-openbsd-bc29f90868baddf213c02c68e9e0edefd6af0be6.zip
Stop pushing version & cfdata into as entropy, since the contents are
known and we rely on the bootpath to prime us anyways. This also solves the issue raised by kettenis, of version potentially being non-word aligned ok kettenis djm
-rw-r--r--sys/dev/rnd.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c
index affc45886a2..a98ee2a4183 100644
--- a/sys/dev/rnd.c
+++ b/sys/dev/rnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rnd.c,v 1.185 2016/09/04 16:15:30 kettenis Exp $ */
+/* $OpenBSD: rnd.c,v 1.186 2016/09/22 22:04:02 deraadt Exp $ */
/*
* Copyright (c) 2011 Theo de Raadt.
@@ -807,14 +807,6 @@ random_start(void)
rnd_states[RND_SRC_TRUE].dont_count_entropy = 1;
rnd_states[RND_SRC_TRUE].max_entropy = 1;
- /* Provide some data from this kernel */
- add_entropy_words((u_int32_t *)version,
- strlen(version) / sizeof(u_int32_t));
-
- /* Provide some data from this kernel */
- add_entropy_words((u_int32_t *)cfdata,
- 8192 / sizeof(u_int32_t));
-
/* Message buffer may contain data from previous boot */
if (msgbufp->msg_magic == MSG_MAGIC)
add_entropy_words((u_int32_t *)msgbufp->msg_bufc,