vxug-VXAPI/Cryptography Related/String Hashing/HashStringLoseLose.cpp
2022-07-14 22:30:08 -05:00

22 lines
244 B
C++

DWORD HashStringLoseLoseA(PCHAR String)
{
ULONG Hash = 0;
INT c;
while (c = *String++)
Hash += c;
return Hash;
}
DWORD HashStringLoseLoseW(PWCHAR String)
{
ULONG Hash = 0;
INT c;
while (c = *String++)
Hash += c;
return Hash;
}