[commons] Return murmur2 hash as long

This commit is contained in:
Johannes Frohnmeyer 2022-06-05 15:34:27 +02:00
parent 4f6c87b525
commit 25aa22b560
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ public class HashUtils {
return formatter.toString();
}
public static String murmur2(byte[] data) {
public static long murmur2(byte[] data) {
final int m = 0x5bd1e995;
final int r = 24;
long k = 0x0L;
@ -105,6 +105,6 @@ public class HashUtils {
h = h ^ (h >> 15);
h = 0x00000000FFFFFFFFL & h;
return String.valueOf(h);
return h;
}
}