[#BloombergLP-bslalg-HashUtil-computeHash-067] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/HashUtil.adoc[HashUtil]::computeHash :relfileprefix: ../../../ :mrdocs: Return a `size_t` 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). == Synopsis Declared in `<bslalg_hashutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t computeHash(char key); ---- == Description NOTE: We reserve the right to change these hash functions to return different values. The current implementation only returns a 32 bit value ‐‐ when `std::size_t` is 64 bits, the high‐order 32 bits of the return value are all zero. This is not a feature, it is a bug that we will fix in a later release. [.small]#Created with https://www.mrdocs.com[MrDocs]#