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

`generate` overloads

== Synopses

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

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


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

[.small]#xref:BloombergLP/bdlb/GuidUtil/generate-04d.adoc[_» more&period;&period;&period;_]#

Generate RFC 4122 version 4 GUIDs into the specified array&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bdlb/GuidUtil/generate-047.adoc[generate](
    xref:BloombergLP/bdlb/Guid.adoc[Guid]* result,
    std::size&lowbar;t numGuids = 1);
----

[.small]#xref:BloombergLP/bdlb/GuidUtil/generate-047.adoc[_» more&period;&period;&period;_]#

Generate RFC 4122 version 4 GUIDs as bytes into the specified array&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bdlb/GuidUtil/generate-0f.adoc[generate](
    unsigned char* result,
    std::size&lowbar;t numGuids = 1);
----

[.small]#xref:BloombergLP/bdlb/GuidUtil/generate-0f.adoc[_» more&period;&period;&period;_]#

== Return Value

a single RFC 4122 version 4 GUID

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| array of `Guid` objects to populate
| *numGuids*
| number of GUIDs to generate (1 if not specified)
|===


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