[#BloombergLP-bdlb-HashUtil-hash1-0b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/HashUtil.adoc[HashUtil]::hash1 :relfileprefix: ../../../ :mrdocs: Return a portable 32‐bit hash value for the specified `key`. == Synopsis Declared in `<bdlb_hashutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | *key* | value to hash |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#