Open akamsteeg opened 3 years ago
I've investigated this some more but it's really tricky to implement this. We have to consider the long tail here. If a user of the lib cached the pastes or breaches first on a lower version of .NET, or stored them in a database or something, and then compares the records we'd be screwed with a HashCode
implementation. We must use a stable hash code calculation instead.
Right now, we have our own hashcode calculator in the form of
HashCodeHelper
. But in .NET Standard 2.1+,System.HashCode
was introduced. Can we replace our handrolled hashcode calculator with the one supplied by the framework?Todo:
HashCodeHelper
and replace it withSystem.HashCode
HashCodeHelper