Esempio n. 1
0
        static Guid DeterministicFarmHash(string src)
        {
            var stringBytes = Encoding.UTF8.GetBytes(src);
            var provider    = new FarmHash128(ulong.MinValue);

            return(new Guid(provider.ComputeHash(stringBytes)));
        }
Esempio n. 2
0
        static Guid DeterministicFarmHashReuse(string src)
        {
            var stringBytes = Encoding.UTF8.GetBytes(src);

            return(new Guid(farmHash128Provider.ComputeHash(stringBytes)));
        }