[#BloombergLP-bdlb-HashUtil-hash2-024] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/HashUtil.adoc[HashUtil]::hash2 :relfileprefix: ../../../ :mrdocs: 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). == Synopsis Declared in `<bdlb_hashutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int hash2(char key); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#