> For the complete documentation index, see [llms.txt](https://malwaresourcecode.com/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://malwaresourcecode.com/home/string-hashing/fowlernollvovariant1a-32.md).

# FowlerNollVoVariant1a 32

```cpp
#include <Windows.h>

UINT32 HashStringFnv1a32W(PWCHAR String)
{
    UINT32 Hash = 0x811C9DC5;

    while (*String)
    {
        Hash ^= (UINT8)*String++;
        Hash *= 0x01000193;
    }

    return Hash;
}

INT main(VOID)
{
    WCHAR StringHashExample[] = L"Hash This String";
    UINT32 Hash = 0;

    Hash = HashStringFnv1a32W(StringHashExample);

    return ERROR_SUCCESS;
}
```
