public override int GetHashCode() { int hash = 1; if (Version != 0) { hash ^= Version.GetHashCode(); } if (Timestamp != 0UL) { hash ^= Timestamp.GetHashCode(); } if (MessageDigest.Length != 0) { hash ^= MessageDigest.GetHashCode(); } if (ChainDigest.Length != 0) { hash ^= ChainDigest.GetHashCode(); } if (ChainDigestSkip1.Length != 0) { hash ^= ChainDigestSkip1.GetHashCode(); } if (ChainDigestSkip2.Length != 0) { hash ^= ChainDigestSkip2.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Get the hash code for this object /// </summary> /// /// <returns>Hash code</returns> public override int GetHashCode() { int prime = 31; int result = 1; result = prime * result + N; result = prime * result + BufferLenBits; result = prime * result + _bufferLenTrits; result = prime * result + CBits; result = prime * result + Db; result = prime * result + DF; result = prime * result + DF1; result = prime * result + DF2; result = prime * result + DF3; result = prime * result + Dg; result = prime * result + Dm0; result = prime * result + MaxM1; result = prime * result + DR; result = prime * result + DR1; result = prime * result + DR2; result = prime * result + DR3; result = prime * result + (FastFp ? 1231 : 1237); result = prime * result + MessageDigest.GetHashCode(); result = prime * result + RandomEngine.GetHashCode(); result = prime * result + (HashSeed ? 1231 : 1237); result = prime * result + Length; result = prime * result + MaxMsgLenBytes; result = prime * result + MinMGFHashCalls; result = prime * result + MinIGFHashCalls; result = prime * result + OId.GetHashCode(); result = prime * result + PkLen; result = prime * result + PolyType.GetHashCode(); result = prime * result + Q; result = prime * result + (Sparse ? 1231 : 1237); return(result); }