Пример #1
0
        public void SmallByteCount_DifferentHash()
        {
            byte _1    = 0x0001;
            byte _2    = 0x0002;
            var  hash1 = _sut.Hash(new[] { _1 });
            var  hash2 = _sut.Hash(new[] { _2 });

            hash1.ShouldNotBe(hash2);
        }
Пример #2
0
        public static ulong FarmHash64(string data)
        {
            var bytes = Encoding.Unicode.GetBytes(data);

            return(FarmHashStrategy.Hash(bytes));
        }