summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2016-12-08 05:32:49 +0000
committerderaadt <deraadt@openbsd.org>2016-12-08 05:32:49 +0000
commit0eadb61c1dcdc68295978fa742a7c4e0c3188a9c (patch)
tree2b957299aad27006575f098e4f75ac21f160be0f
parentFix regressions introduce in the fix for CVE-2016-6559. (diff)
downloadwireguard-openbsd-0eadb61c1dcdc68295978fa742a7c4e0c3188a9c.tar.xz
wireguard-openbsd-0eadb61c1dcdc68295978fa742a7c4e0c3188a9c.zip
fix spelling errors and typos, from Michael W. Bombardieri
-rw-r--r--sys/dev/rnd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c
index 34b20e0b3d1..a582123f3f7 100644
--- a/sys/dev/rnd.c
+++ b/sys/dev/rnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rnd.c,v 1.190 2016/10/18 13:40:59 deraadt Exp $ */
+/* $OpenBSD: rnd.c,v 1.191 2016/12/08 05:32:49 deraadt Exp $ */
/*
* Copyright (c) 2011 Theo de Raadt.
@@ -186,7 +186,7 @@
* distance from evenly spaced; except for the last tap, which is 1 to
* get the twisting happening as fast as possible.
*
- * The reultant polynomial is:
+ * The resultant polynomial is:
* 2^POOLWORDS + 2^POOL_TAP1 + 2^POOL_TAP2 + 2^POOL_TAP3 + 2^POOL_TAP4 + 1
*/
#define POOLWORDS 2048
@@ -363,7 +363,7 @@ add_entropy_words(const u_int32_t *buf, u_int n)
}
/*
- * Pulls entropy out of the queue and throws merges it into the pool
+ * Pulls entropy out of the queue and merges it into the pool
* with the CRC.
*/
/* ARGSUSED */
@@ -631,7 +631,6 @@ _rs_random_u32(u_int32_t *val)
memcpy(val, rs_buf + RSBUFSZ - rs_have, sizeof(*val));
memset(rs_buf + RSBUFSZ - rs_have, 0, sizeof(*val));
rs_have -= sizeof(*val);
- return;
}
/* Return one word of randomness from a ChaCha20 generator */