Add tests for xxHash128

This commit is contained in:
Oleksandr Melnyk
2022-06-03 15:02:55 +03:00
parent 8d6f7fa43b
commit c079a400a0
8 changed files with 288 additions and 9 deletions

View File

@@ -248,7 +248,7 @@ public static partial class xxHash32
fixed (char* c = str)
{
byte* ptr = (byte*) c;
int length = str.Length;
int length = str.Length * 2;
return UnsafeComputeHash(ptr, length, seed);
}