fix iterative hashing bug in binding functions

This commit is contained in:
Jonathan Shook 2020-07-17 18:38:57 -05:00
parent 6d99deba3e
commit 7c80bbd785
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ public class ListHashed implements LongFunction<List<Object>> {
for (int i = 0; i < size; i++) {
int selector = Math.min(i, valueFuncs.size() - 1);
LongFunction<?> func = valueFuncs.get(selector);
hash = hasher.applyAsLong(value);
hash = hasher.applyAsLong(hash);
list.add(func.apply(hash));
}
return list;

View File

@ -44,7 +44,7 @@ public class SetHashed implements LongFunction<java.util.Set<Object>> {
for (int i = 0; i < size; i++) {
int selector = Math.min(i, valueFuncs.size() - 1);
LongFunction<?> func = valueFuncs.get(selector);
hash = hasher.applyAsLong(value);
hash = hasher.applyAsLong(hash);
list.add(func.apply(hash));
}
return list;