Skip to content

Commit

Permalink
Merge pull request #1212 from symbiogenesis/arithmetic-overflow
Browse files Browse the repository at this point in the history
prevent arithmetic overflow
  • Loading branch information
Mimetis authored Jul 5, 2024
2 parents 6782812 + d952d29 commit 63d56ef
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Tests/Dotmim.Sync.Tests/Models/AdventureWorksContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1173,13 +1173,7 @@ protected override bool Equals(ModelCacheKey other)

public override int GetHashCode()
{
var hashCode = base.GetHashCode() * 397;
hashCode ^= this.useSchema.GetHashCode();
hashCode ^= this.providerType.GetHashCode();
hashCode ^= this.useSeeding.GetHashCode();
hashCode ^= this.cstring.GetHashCode();

return hashCode;
return HashCode.Combine(base.GetHashCode(), useSchema, providerType, useSeeding, cstring);
}
}
}

0 comments on commit 63d56ef

Please sign in to comment.