This commit is contained in:
Looly
2024-03-15 16:26:18 +08:00
parent 44d58c30df
commit 03891277e9
6 changed files with 1316 additions and 276 deletions

View File

@@ -120,7 +120,7 @@ public class MetroHash128Test {
static String h128(final String input) {
final MetroHash128 mh = MetroHash128.of(0).apply(ByteBuffer.wrap(ByteUtil.toUtf8Bytes(input)));
final Number128 hash = mh.get();
return hex(hash.getHighValue()) + hex(hash.getLowValue());
return hex(hash.getMostSigBits()) + hex(hash.getLeastSigBits());
}
private static String hex(final long value){