[map Further adjust hash function

This commit is contained in:
Behdad Esfahbod 2022-05-19 16:00:43 -06:00
parent 01fc90b68c
commit 2fdb7616f5
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ struct hb_hashmap_t
{ {
uint32_t h = 0; uint32_t h = 0;
for (auto pair : iter ()) for (auto pair : iter ())
h ^= (hb_hash (pair.first) * 31) ^ hb_hash (pair.second); h ^= (hb_hash (pair.first) * 31) + hb_hash (pair.second);
return h; return h;
} }