From 6026ff02851bd012d13f43e84b4d5b1e17c5d1ff Mon Sep 17 00:00:00 2001 From: Erica Fischer Date: Fri, 2 Feb 2024 15:01:32 -0800 Subject: [PATCH] Add explanatory comment for mysterious argument --- text.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/text.cpp b/text.cpp index 87295223..b1aa2d67 100644 --- a/text.cpp +++ b/text.cpp @@ -198,6 +198,7 @@ unsigned long long fnv1a(std::string const &s) { return h; } +// The "additional" is to make it easier to hash a serial_val attribute value and type together unsigned long long fnv1a(const char *s, char additional) { // http://www.isthe.com/chongo/tech/comp/fnv/ const unsigned long long fnv_offset_basis = 14695981039346656037u;