Author: pfg
Date: Mon May  2 14:35:57 2016
New Revision: 298923
URL: https://svnweb.freebsd.org/changeset/base/298923

Log:
  dev/random: minor spelling fixes in comments.
  
  No functional change.
  
  Reviewed by:  markm
  Approved by:  so

Modified:
  head/sys/dev/random/fortuna.c
  head/sys/dev/random/yarrow.c

Modified: head/sys/dev/random/fortuna.c
==============================================================================
--- head/sys/dev/random/fortuna.c       Mon May  2 13:18:17 2016        
(r298922)
+++ head/sys/dev/random/fortuna.c       Mon May  2 14:35:57 2016        
(r298923)
@@ -250,7 +250,7 @@ random_fortuna_process_event(struct harv
 /*-
  * 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

Modified: head/sys/dev/random/yarrow.c
==============================================================================
--- head/sys/dev/random/yarrow.c        Mon May  2 13:18:17 2016        
(r298922)
+++ head/sys/dev/random/yarrow.c        Mon May  2 14:35:57 2016        
(r298923)
@@ -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 harve
                }
        }
        /*
-        * 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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to