1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:07:47 +00:00

AK: Rename double_hash to rehash_for_collision

The name is currently quite confusing as it indicates it hashes doubles.
This commit is contained in:
Timothy Flynn 2023-01-20 15:25:33 -05:00 committed by Jelle Raaijmakers
parent dbc04bbf1b
commit 4f5353cbb8
3 changed files with 8 additions and 8 deletions

View file

@ -19,7 +19,7 @@ constexpr unsigned int_hash(u32 key)
return key;
}
constexpr unsigned double_hash(u32 key)
constexpr unsigned rehash_for_collision(u32 key)
{
unsigned const magic = 0xBA5EDB01;
if (key == magic)