mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00:00
revert hasher
This commit is contained in:
committed by
Ryan Fleury
parent
98a05728b3
commit
763bb57459
@@ -2839,10 +2839,7 @@ str8_is_before_case_sensitive(const void *a, const void *b)
|
|||||||
|
|
||||||
internal U64
|
internal U64
|
||||||
u64_hash_from_seed_str8(U64 seed, String8 string)
|
u64_hash_from_seed_str8(U64 seed, String8 string)
|
||||||
{
|
{
|
||||||
XXH3_state_t hasher; XXH3_64bits_reset_withSeed(&hasher, seed);
|
|
||||||
XXH3_64bits_update(&hasher, &string.size, sizeof(string.size));
|
|
||||||
XXH3_64bits_update(&hasher, string.str, string.size);
|
|
||||||
U64 result = XXH3_64bits_withSeed(string.str, string.size, seed);
|
U64 result = XXH3_64bits_withSeed(string.str, string.size, seed);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user