public UInt128 Visit(CosmosInt32 cosmosInt32, UInt128 seed)
            {
                UInt128 hash  = seed == RootHashSeed ? RootCache.Int32 : MurmurHash3.Hash128(HashSeeds.Int32, seed);
                int     value = cosmosInt32.GetValue();

                hash = MurmurHash3.Hash128(value, hash);
                return(hash);
            }
            public UInt128 Visit(CosmosInt32 cosmosInt32, UInt128 seed)
            {
                UInt128 hash  = MurmurHash3.Hash128(CosmosNumberHasher.Int32HashSeed, seed);
                int     value = cosmosInt32.GetValue();

                hash = MurmurHash3.Hash128(value, hash);
                return(hash);
            }
Example #3
0
 public void Visit(CosmosInt32 cosmosInt32)
 {
     this.stringBuilder.AppendFormat("C_Int32({0})", cosmosInt32.GetValue());
 }