Use int32_t instead of long for hashes