dev/random: minor spelling fixes in comments.

No functional change.

Reviewed by:	markm
Approved by:	so
This commit is contained in:
Pedro F. Giffuni 2016-05-02 14:35:57 +00:00
parent f7b71c8a5b
commit 32a71a72e1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298923
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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);