From 71f5e2d9ea97078ea1bb53dc9083f4b446ce4213 Mon Sep 17 00:00:00 2001 From: "Peter D. Barnes, Jr." Date: Tue, 13 Nov 2012 16:41:15 -0800 Subject: [PATCH] Document origin of FNV1a code; fix type. --- src/core/model/hash-fnv.h | 9 +++++++++ src/core/model/hash.h | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/core/model/hash-fnv.h b/src/core/model/hash-fnv.h index ee4487f88..d4c4d75e0 100644 --- a/src/core/model/hash-fnv.h +++ b/src/core/model/hash-fnv.h @@ -34,6 +34,15 @@ namespace Function { * * \brief Fnv1a hash function implementation * + * This is the venerable Fowler-Noll-Vo hash, version 1A. (See the + * FNV page.) + * + * The implementation here is taken directly from the published FNV + * + * reference code, + * with minor modifications to wrap into this class. See the + * hash-fnv.cc file for details. + * */ class Fnv1a : public Implementation { diff --git a/src/core/model/hash.h b/src/core/model/hash.h index 6fb1987fe..4ff9a82b4 100644 --- a/src/core/model/hash.h +++ b/src/core/model/hash.h @@ -207,7 +207,7 @@ Hash64_t Hash64 (const std::string s); namespace ns3 { /************************************************* - class Hash implementation, inlined for rvo + class Hasher implementation, inlined for rvo */ inline