|
|
|
@ -19,7 +19,7 @@ import io.netty.buffer.ByteBuf;
|
|
|
|
|
import io.netty.buffer.Unpooled; |
|
|
|
|
import io.netty.handler.codec.base64.Base64; |
|
|
|
|
import io.netty.util.CharsetUtil; |
|
|
|
|
import net.openhft.hashing.LongHashFunction; |
|
|
|
|
import com.fr.third.openhft.hashing.LongHashFunction; |
|
|
|
|
|
|
|
|
|
public class Hash { |
|
|
|
|
|
|
|
|
@ -28,7 +28,7 @@ public class Hash {
|
|
|
|
|
|
|
|
|
|
public static String hashToBase64(byte[] objectState) { |
|
|
|
|
long h1 = LongHashFunction.farmUo().hashBytes(objectState); |
|
|
|
|
long h2 = LongHashFunction.xx_r39().hashBytes(objectState); |
|
|
|
|
long h2 = LongHashFunction.xx().hashBytes(objectState); |
|
|
|
|
|
|
|
|
|
ByteBuf buf = Unpooled.buffer((2 * Long.SIZE) / Byte.SIZE).writeLong(h1).writeLong(h2); |
|
|
|
|
|
|
|
|
|