Murmur3 { public static long hash64(byte[] data) { return hash64(data, 0, data.length, DEFAULT_SEED); }  static int hash32(byte[] data); static int hash32(byte[] data, int length, int seed); static long hash64(byte[] data); static long hash64(byte[] data, int offset, int length); static long hash64(byte[] data, int offset, int length, int seed); static byte[] hash128(byte[] data); static byte[] hash128(byte[] data, int offset, int length, int seed); static final long NULL_HASHCODE; static final int DEFAULT_SEED; }
@Test public void testHash64() { assertBytes("b3d427606b5971177385b6ff059f9904", Murmur3.hash128("This is a test".getBytes())); assertBytes("00a924bf9b531fe091fd4ddf4e0419c7", Murmur3.hash128("Some other test value".getBytes())); }