Hi!
I have a collision problem with xxHash3.Hash64.
I have a method to convert string to hash :
{
fixed ( char* s = input )
Hash = xxHash3.Hash64(s, input.Length);
Assert.IsFalse(Hash.Equals(default));
}
The result for test "foo1" & "foo2", see attachment
It seems that the hash is based on the length and not the content of the memory block because all foo[0-9] have the same result :/
From the github implementation, collision can't happen with an input of a lenght < 16
Is it a bug or I miss something ?