protected override BigInteger?Hash(byte[] buffer, int offset, int len) { long hash = MurmurHash.Hash3_x64_128(buffer, offset, len, 0)[0]; // hash normalization (minimum value is excluded) if (hash == long.MinValue) { hash = long.MaxValue; } return(hash); }
public override IToken Hash(byte[] partitionKey) { long v = (long)MurmurHash.Hash3_x64_128(partitionKey, 0, partitionKey.Length, 0)[0]; return(new M3PToken(v == long.MinValue ? long.MaxValue : v)); }