diff options
author | pfg <pfg@FreeBSD.org> | 2016-05-02 14:35:57 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-05-02 14:35:57 +0000 |
commit | 8490ace219f14ce85a3e0ba51a8b5b2716567cae (patch) | |
tree | 4f3f212812d5d65885a2bec070430236f286da07 | |
parent | 9eb6f0fde4c92d101df058d2ad6dea964988cebb (diff) | |
download | FreeBSD-src-8490ace219f14ce85a3e0ba51a8b5b2716567cae.zip FreeBSD-src-8490ace219f14ce85a3e0ba51a8b5b2716567cae.tar.gz |
dev/random: minor spelling fixes in comments.
No functional change.
Reviewed by: markm
Approved by: so
-rw-r--r-- | sys/dev/random/fortuna.c | 2 | ||||
-rw-r--r-- | sys/dev/random/yarrow.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/random/fortuna.c b/sys/dev/random/fortuna.c index f3c74ce..3ae0fe0 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 49cc8d0..40fc6cd 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); |