String::BernsteinHashFunction

String::BernsteinHashFunction
static UPInt SF_STDCALL BernsteinHashFunction(const void* pdataIn, UPInt size, UPInt seed = 5381);
Description

BernsteinHashFunction is a case sensitive Bernstein string hash function and computes hash (developed by Dan Bernstein).

Parameters
Parameters 
Description 
const void* pdataIn 
Pointer to the string. The string will always be interpreted as a byte data array. 
UPInt size 
Number of bytes to be used in creating the hash. This should always be less than the number of bytes in the string. 
UPInt seed = 5381 
Set to 5381 by default. 
Return Value

Hash value.