mirror of
https://github.com/vxunderground/VX-API
synced 2026-06-06 16:54:55 +00:00
f0b5d2bd5d
Some function names renamed to avoid confusion, some function annotations added.
27 lines
381 B
C++
27 lines
381 B
C++
#include "Win32Helper.h"
|
|
|
|
ULONG HashStringFowlerNollVoVariant1aA(_In_ PCHAR String)
|
|
{
|
|
ULONG Hash = 0x811c9dc5;
|
|
|
|
while (*String)
|
|
{
|
|
Hash ^= (UCHAR)*String++;
|
|
Hash *= 0x01000193;
|
|
}
|
|
|
|
return Hash;
|
|
}
|
|
|
|
ULONG HashStringFowlerNollVoVariant1aW(_In_ PWCHAR String)
|
|
{
|
|
ULONG Hash = 0x811c9dc5;
|
|
|
|
while (*String)
|
|
{
|
|
Hash ^= (UCHAR)*String++;
|
|
Hash *= 0x01000193;
|
|
}
|
|
|
|
return Hash;
|
|
} |