BloombergLP::bdlb::GuidUtil::generateFromName

Return an RFC 4122 version 5 GUID derived from a namespace and name.

Synopsis

Declared in <bdlb_guidutil.h>

static
Guid
generateFromName(
    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

NameDescription
namespaceIdnamespace UUID for name-based generation
namename from which the GUID is derived