@cryptotaxi247 / netdata-1 / commits / c98326dc5

use the newer XXH3 128bits algorithm, instead of the classic XXH128 (#15878)

Costa Tsaousis committed Aug 25, 2023 at 01:01 UTC c98326dc5bc53835a10f4875ae1c20becdc591e6
1 file changed +1 -1
libnetdata/facets/facets.c
+1 -1
@@ -17,7 +17,7 @@ static inline void uint64_to_char(uint64_t num, char *out) {
17 }
18
19 inline void facets_string_hash(const char *src, size_t len, char *out) {
20 - XXH128_hash_t hash = XXH128(src, len, 0);
20 + XXH128_hash_t hash = XXH3_128bits(src, len);
21
22 uint64_to_char(hash.high64, out);
23 uint64_to_char(hash.low64, &out[11]); // Starts right after the first 64-bit encoded string