aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/random
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-05-02 14:35:57 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-05-02 14:35:57 +0000
commit32a71a72e1e8142c317c2164ef5903eac12fd8fd (patch)
tree4f3f212812d5d65885a2bec070430236f286da07 /sys/dev/random
parentf7b71c8a5b530744c11a5758323838c912f09811 (diff)
Notes
Diffstat (limited to 'sys/dev/random')
-rw-r--r--sys/dev/random/fortuna.c2
-rw-r--r--sys/dev/random/yarrow.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/random/fortuna.c b/sys/dev/random/fortuna.c
index f3c74cefea01..3ae0fe006a0c 100644
--- a/sys/dev/random/fortuna.c
+++ b/sys/dev/random/fortuna.c
@@ -250,7 +250,7 @@ random_fortuna_process_event(struct harvest_event *event)
/*-
* FS&K - Reseed()
* This introduces new key material into the output generator.
- * Additionaly it increments the output generator's counter
+ * Additionally it increments the output generator's counter
* variable C. When C > 0, the output generator is seeded and
* will deliver output.
* The entropy_data buffer passed is a very specific size; the
diff --git a/sys/dev/random/yarrow.c b/sys/dev/random/yarrow.c
index 49cc8d0ee475..40fc6cd9162e 100644
--- a/sys/dev/random/yarrow.c
+++ b/sys/dev/random/yarrow.c
@@ -96,7 +96,7 @@ static struct yarrow_state {
u_int ys_slowoverthresh; /* slow pool overthreshhold reseed count */
struct ys_pool {
u_int ysp_source_bits[ENTROPYSOURCE]; /* estimated bits of entropy per source */
- u_int ysp_thresh; /* pool reseed threshhold */
+ u_int ysp_thresh; /* pool reseed threshold */
struct randomdev_hash ysp_hash; /* accumulated entropy */
} ys_pool[RANDOM_YARROW_NPOOLS];/* pool[0] is fast, pool[1] is slow */
bool ys_seeded;
@@ -240,8 +240,8 @@ random_yarrow_process_event(struct harvest_event *event)
}
}
/*
- * If enough slow sources are over threshhold, then slow reseed
- * else if any fast source over threshhold, then fast reseed.
+ * If enough slow sources are over threshold, then slow reseed
+ * else if any fast source over threshold, then fast reseed.
*/
if (overthreshhold[RANDOM_YARROW_SLOW] >= yarrow_state.ys_slowoverthresh)
random_yarrow_reseed_internal(RANDOM_YARROW_SLOW);