From ecc8709cca66d3e49efd773181dd6a91e14dc6c5 Mon Sep 17 00:00:00 2001 From: Davy Landman Date: Wed, 20 Sep 2023 12:56:07 +0200 Subject: [PATCH] Proper attribution of mix function --- .../usethesource/vallang/util/WeakReferenceHashConsingMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/usethesource/vallang/util/WeakReferenceHashConsingMap.java b/src/main/java/io/usethesource/vallang/util/WeakReferenceHashConsingMap.java index c8c861e6..ff8189de 100644 --- a/src/main/java/io/usethesource/vallang/util/WeakReferenceHashConsingMap.java +++ b/src/main/java/io/usethesource/vallang/util/WeakReferenceHashConsingMap.java @@ -179,7 +179,7 @@ public WeakReferenceHashConsingMap(int size, int demoteAfterSeconds) { } private static int improve(int hash) { - // xxhash avalanching phase + // base on XXH32_avalanche from xxHash (BSD2 license, Yann Collet) hash ^= hash >>> 15; hash *= 0x85EBCA77; hash ^= hash >>> 13;