From 01fc90b68c023d380f3cd44e13b21972b3a41dcf Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 19 May 2022 16:00:06 -0600 Subject: [PATCH] [map] Adjust hash function --- src/hb-map.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-map.hh b/src/hb-map.hh index 3f4576bb9..4d3f6fde6 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -243,7 +243,7 @@ struct hb_hashmap_t { uint32_t h = 0; for (auto pair : iter ()) - h ^= hb_hash (pair.first) ^ hb_hash (pair.second); + h ^= (hb_hash (pair.first) * 31) ^ hb_hash (pair.second); return h; }