UUID.uuidVersion

RFC 4122 defines different UUID versions. The version shows how a UUID was generated, e.g. a version 4 UUID was generated from a random number, a version 3 UUID from an MD5 hash of a name. Returns the version used by this UUID.

struct UUID
@safe pure nothrow @nogc @property const
uuidVersion
()

Examples

assert(UUID("8ab3060e-2cba-4f23-b74c-b52db3bdfb46").uuidVersion
    == UUID.Version.randomNumberBased);

See Also

$(MYREF3 UUID.Version, Version)

Meta