summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Arceri <t_arceri@yahoo.com.au>2014-11-25 15:23:15 -0800
committerEric Anholt <eric@anholt.net>2014-11-25 15:23:30 -0800
commit2f56d34cbe834ebacb89a9551daf4b3ba78fc7a8 (patch)
treee88f47870e57a37e8f5dd22c7212d7a01e554c12
parent0966e262e6c802dd142e8949de578148e6c395d5 (diff)
Note that the hash used is actually FNV-1a.
FNV-1 has the XOR and the MUL in the opposite order.
-rw-r--r--fnv_hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fnv_hash.c b/fnv_hash.c
index 8ca4cd8..870dc0d 100644
--- a/fnv_hash.c
+++ b/fnv_hash.c
@@ -24,10 +24,10 @@
* Eric Anholt <eric@anholt.net>
*/
-/* Quick FNV-1 hash implementation based on:
+/* Quick FNV-1a hash implementation based on:
* http://www.isthe.com/chongo/tech/comp/fnv/
*
- * FNV-1 may not be the best hash out there -- Jenkins's lookup3 is supposed
+ * FNV-1a may not be the best hash out there -- Jenkins's lookup3 is supposed
* to be quite good, and it may beat FNV. But FNV has the advantage that it
* involves almost no code.
*/