BraintreeEncryption.Library.BouncyCastle.Util.Arrays.GetHashCode C# (CSharp) Method

GetHashCode() public static method

public static GetHashCode ( byte data ) : int
data byte
return int
        public static int GetHashCode(
			byte[] data)
        {
            if (data == null)
            {
                return 0;
            }

            int i = data.Length;
            int hc = i + 1;

            while (--i >= 0)
            {
                hc *= 257;
                hc ^= data[i];
            }

            return hc;
        }