[#BloombergLP-bdlb-HashUtil-hash2-09e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/HashUtil.adoc[HashUtil]::hash2 :relfileprefix: ../../../ :mrdocs: Return an independent 32‐bit hash value for the specified `data` of the specified `length`. == Synopsis Declared in `<bdlb_hashutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int hash2( char const* data, int length); ---- == Description The behavior is undefined unless `0 <= length`. Note that if `data` is 0, then `length` also must be 0. Also note that every byte in `data` is significant. Both `hash1` and `hash2` return a hash, but both hashes can be assumed to be independent. == Return Value independent 32‐bit hash value for `data` == Parameters [cols="1,4"] |=== | Name| Description | *data* | bytes to hash | *length* | number of bytes in `data` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#