mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-06 00:36:32 +00:00
ClientIdentifierOption: fixed bug in GetHashCode().
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user