Skip to content

Commit

Permalink
Fix hashcode
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Sep 16, 2020
1 parent 2f3079a commit 5866669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo/Cryptography/ECC/ECPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public static ECPoint FromBytes(byte[] pubkey, ECCurve curve)

public override int GetHashCode()
{
return X.GetHashCode() + Y.GetHashCode();
return HashCode.Combine(X.GetHashCode(), Y.GetHashCode());
}

internal static ECPoint Multiply(ECPoint p, BigInteger k)
Expand Down

0 comments on commit 5866669

Please sign in to comment.