[master] bc7ac9c80 vrnd: Typo

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Tue Nov 23 06:48:05 UTC 2021


commit bc7ac9c8089a135f0b0de8133c1f19a7e62772e7
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Tue Nov 23 07:47:19 2021 +0100

    vrnd: Typo

diff --git a/lib/libvarnish/vrnd.c b/lib/libvarnish/vrnd.c
index 8e189f771..d72b697ad 100644
--- a/lib/libvarnish/vrnd.c
+++ b/lib/libvarnish/vrnd.c
@@ -53,7 +53,7 @@ vrnd_lock_f *VRND_Unlock;
 
 /**********************************************************************
  * Stripped down random(3) implementation from FreeBSD, to provide
- * predicatable "random" numbers of testing purposes.
+ * predictable "random" numbers of testing purposes.
  */
 
 #define	TYPE_3		3		/* x**31 + x**3 + 1 */
@@ -83,7 +83,7 @@ good_rand(uint32_t ctx)
 {
 /*
  * Compute x = (7^5 * x) mod (2^31 - 1)
- * wihout overflowing 31 bits:
+ * without overflowing 31 bits:
  *      (2^31 - 1) = 127773 * (7^5) + 2836
  * From "Random number generators: good ones are hard to find",
  * Park and Miller, Communications of the ACM, vol. 31, no. 10,


More information about the varnish-commit mailing list