Example #1
0
        public void Test_Murmur3_128_x64_123()
        {
            mHash64 = new Murmur3_x64_128(123);
            byte[] finHash = mHash64.ComputeHash(Encoding.ASCII.GetBytes(strHash));

            //Covert bytes to Hex
            string finHexHash = ByteArrayToString(finHash);

            Assert.Equal("60 98 45 3b e1 ba 5b 6d 5e 2d b1 da 3a 18 30 51 ", finHexHash);
        }
Example #2
0
        public void Test_Murmur3_128_x64_0()
        {
            mHash64 = new Murmur3_x64_128(0);
            byte[] finHash = mHash64.ComputeHash(Encoding.ASCII.GetBytes(strHash));

            //Covert bytes to Hex
            string finHexHash = ByteArrayToString(finHash);

            Assert.Equal("db c2 a0 c1 ab 26 63 1a 27 b4 c0 9f cf 1f e6 83 ", finHexHash);
        }