[#BloombergLP-bdlb-GuidUtil-generateFromName] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/GuidUtil.adoc[GuidUtil]::generateFromName :relfileprefix: ../../../ :mrdocs: Return an RFC 4122 version 5 GUID derived from a namespace and name. == Synopsis Declared in `<bdlb_guidutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlb/Guid.adoc[Guid] generateFromName( xref:BloombergLP/bdlb/Guid.adoc[Guid] const& namespaceId, std::string_view const& name); ---- == Description Generate and return a single GUID meeting the RFC 4122 version 5 specification from the specified `namespaceId` and `name`. `namespaceId` may (but need not) be one of the pre‐defined namespace IDs. Note that this method is a pure function of its arguments. == Return Value an RFC 4122 version 5 GUID derived from `namespaceId` and `name` == Parameters [cols="1,4"] |=== | Name| Description | *namespaceId* | namespace UUID for name‐based generation | *name* | name from which the GUID is derived |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#