fnv-1 hash definition
TerryLiu007 opened this issue · comments
Terry Liu commented
I found the following code snippet in 'datatype.h':
template struct IntArrayHash{
std::size_t operator()(Point const &p) const{
Int hash = 16777619;
for(auto x : p){
hash *= 2166136261;
hash ^= x;
}
return hash;
}
};
According to the definition of fnv-1 hash, shouldn't the offset-basis be 2166136261 and prime be 16777619?