NLDClient-yudde/Tool/Obfuz/EditorAssets/Editor/KedrExtension/HashUtil.cs

16 lines
281 B
C#
Raw Normal View History

2026-01-27 18:24:36 +08:00
internal static class HashUtil
{
public static uint Hash(string str)
{
const uint prime = 0x1000193;
var hash = 0x811c9dc5;
foreach (var ch in str)
{
hash ^= ch;
hash *= prime;
}
return hash;
}
}