From 8c6138652733b4beda082ca2393170c14d5feb06 Mon Sep 17 00:00:00 2001 From: Amlal Date: Sun, 4 May 2025 09:15:24 +0200 Subject: feat(kernel/filesystem): update HeFS's FNV algorithm to 64-bit. Signed-off-by: Amlal --- dev/kernel/src/FS/HeFS+FileSystemParser.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dev/kernel/src/FS') diff --git a/dev/kernel/src/FS/HeFS+FileSystemParser.cc b/dev/kernel/src/FS/HeFS+FileSystemParser.cc index b73de87e..1e2cf873 100644 --- a/dev/kernel/src/FS/HeFS+FileSystemParser.cc +++ b/dev/kernel/src/FS/HeFS+FileSystemParser.cc @@ -90,8 +90,8 @@ namespace Detail { /// @param path the directory path. /// @return The hashed path. STATIC UInt64 hefsi_hash_64(const Utf8Char* path) { - const UInt64 FNV_OFFSET_BASIS = 0x811C9DC5; - const UInt64 FNV_PRIME = 0x01000193; + const UInt64 FNV_OFFSET_BASIS = 0xcbf29ce484222325ULL; + const UInt64 FNV_PRIME = 0x100000001b3ULL; UInt64 hash = FNV_OFFSET_BASIS; -- cgit v1.2.3