can someone please tell me what i’m doing wrong? i’m trying to hash a value with murmurhash, but i get different values every time:
std::string str = "some test string";
char out[32];
MurmurHash3_x86_32(str.c_str(), str.length(), 0, out);
unsigned int hash = reinterpret_cast<unsigned int>(out);
It looks to me like
MurmurHash3_x86_32is returning a 32 bits hash value. But you’re giving it a 32 bytes output parameter.You could simply: