ClientIdentifierOption: fixed bug in GetHashCode().

This commit is contained in:
Shreyas Zare
2024-06-15 15:04:50 +05:30
parent 39a6bc36f0
commit d99882fdbc

View File

@@ -115,10 +115,7 @@ namespace DnsServerCore.Dhcp.Options
public override int GetHashCode()
{
int hashCode = 937899003;
hashCode = hashCode * -1521134295 + _type.GetHashCode();
hashCode = hashCode * -1521134295 + BitConverter.ToInt32(_identifier, 0);
return hashCode;
return HashCode.Combine(_type, _identifier);
}
public override string ToString()