hash.cpp
#include "headers.h"
ULONG ComputeHash(const WCHAR * psz)
{
AssertReadString(psz);
ULONG hash = 0;
while (*psz != '
{
hash = 17 * hash + *psz;
++psz;
}
return hash;
}
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
#include "headers.h"
ULONG ComputeHash(const WCHAR * psz)
{
AssertReadString(psz);
ULONG hash = 0;
while (*psz != '
{
hash = 17 * hash + *psz;
++psz;
}
return hash;
}