diff --git a/src/Standart.Hash.xxHash/Utils.cs b/src/Standart.Hash.xxHash/Utils.cs index ab3b49b..2e78c1f 100644 --- a/src/Standart.Hash.xxHash/Utils.cs +++ b/src/Standart.Hash.xxHash/Utils.cs @@ -208,8 +208,6 @@ namespace Standart.Hash.xxHash *(long*)(ptrDst + 16) = *(long*)(ptrSrc + 16); *(long*)(ptrDst + 24) = *(long*)(ptrSrc + 24); return; - default: - break; } long* lpSrc = (long*)ptrSrc; @@ -244,7 +242,7 @@ namespace Standart.Hash.xxHash ptrSrc = (byte*)lpSrc; ptrDst = (byte*)ldSrc; goto SMALLTABLE; - } + } } } } \ No newline at end of file diff --git a/src/Standart.Hash.xxHash/xxHash128.cs b/src/Standart.Hash.xxHash/xxHash128.cs index 0215134..b072acb 100644 --- a/src/Standart.Hash.xxHash/xxHash128.cs +++ b/src/Standart.Hash.xxHash/xxHash128.cs @@ -35,7 +35,7 @@ namespace Standart.Hash.xxHash /// The length of the data for hashing /// The seed number /// hash - public static unsafe uint128 ComputeHash(Span data, int length, uint seed = 0) + public static unsafe uint128 ComputeHash(Span data, int length, ulong seed = 0) { Debug.Assert(data != null); Debug.Assert(length >= 0); @@ -54,7 +54,7 @@ namespace Standart.Hash.xxHash /// The length of the data for hashing /// The seed number /// hash - public static unsafe uint128 ComputeHash(ReadOnlySpan data, int length, uint seed = 0) + public static unsafe uint128 ComputeHash(ReadOnlySpan data, int length, ulong seed = 0) { Debug.Assert(data != null); Debug.Assert(length >= 0); @@ -67,12 +67,12 @@ namespace Standart.Hash.xxHash } /// - /// Compute xxHash for the data byte span + /// Compute xxHash for the string /// /// The source of data /// The seed number /// hash - public static unsafe uint128 ComputeHash(string str, uint seed = 0) + public static unsafe uint128 ComputeHash(string str, ulong seed = 0) { Debug.Assert(str != null);