[#BloombergLP-bdlb-HashUtil-hash0-0ed] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/HashUtil.adoc[HashUtil]::hash0 :relfileprefix: ../../../ :mrdocs: Return a pseudo‐random unsigned integer in the range from zero to one less than the specified `modulus` corresponding to the specified `string` having the specified `stringLength`. `string` need not be null‐terminated and may contain embedded null characters. The behavior is undefined unless `0 <= stringLength` and `0 < modulus < 2ˆ31`. Note that `modulus` is expected to be a prime not close to an integral power of 2. Also note that specifying a `modulus` of 1 will cause 0 to be returned for every `string`. == Synopsis Declared in `<bdlb_hashutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int hash0( char const* string, int stringLength, int modulus); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#