blob: 53d9cbb4f0cc4009a99b3de1a2fc1039abb43639 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package com.yahoo.compress;
import net.openhft.hashing.LongHashFunction;
/**
* Utility for hashing providing multiple hashing methods
* @author baldersheim
*/
public class Hasher {
/** Uses net.openhft.hashing.LongHashFunction.xx3() */
public static long xxh3(byte [] data) {
return LongHashFunction.xx3().hashBytes(data);
}
}
|