[#BloombergLP-bdlb-GuidUtil-generate-04d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/GuidUtil.adoc[GuidUtil]::generate
:relfileprefix: ../../../
:mrdocs:

Generate and return a single RFC 4122 version 4 GUID&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;guidutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/Guid.adoc[Guid]
generate();
----

== Description

Generate and return a single GUID meeting the RFC 4122 version 4 specification, consisting of 122 randomly generated bits, two &quot;variant&quot; bits set to `10`, and four &quot;version&quot; bits set to `0100`&period;

== Return Value

a single RFC 4122 version 4 GUID


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