[#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&lowbar;t` hash value corresponding to the specified `key`&period; Note that the return value is seemingly random (i&period;e&period;, the hash is good) but identical on all platforms (irrespective of endianness)&period;

== Synopsis

Declared in `&lt;bslalg&lowbar;hashutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
computeHash(char key);
----

== Description

NOTE&colon; We reserve the right to change these hash functions to return different values&period; The current implementation only returns a 32 bit value &hyphen;&hyphen; when `std&colon;&colon;size&lowbar;t` is 64 bits, the high&hyphen;order 32 bits of the return value are all zero&period; This is not a feature, it is a bug that we will fix in a later release&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
