Return a portable 32‐bit hash value for the specified key.
Synopsis
Declared in <bdlb_hashutil.h>
static
unsigned int
hash1(char key);
Description
Return an unsigned integer hash value corresponding to the specified key. Note that the return value is seemingly random (i.e., the hash is good) but identical on all platforms (irrespective of endianness). Both functions hash1 and hash2 return a hash, but both hashes can be assumed to be independent (i.e., there are no known correlations between the results of both hash functions given the same input data).
Return Value
portable 32‐bit hash value for key
Parameters
Name |
Description |
key |
value to hash |
Created with MrDocs