View source code
Display the source code in std/uuid.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Enum std.uuid.UUID.Version

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.

enum Version : int { ... }

Enum members

NameDescription
dceSecurity Version 2
nameBasedMD5 Version 3 (Name based + MD5)
nameBasedSHA1 Version 5 (Name based + SHA-1)
randomNumberBased Version 4 (Random)
timeBased Version 1
unknown Unknown version

Note

All of these UUID versions can be read and processed by std.uuid, but only version 3, 4 and 5 UUIDs can be generated.

Authors

Johannes Pfau

License

Boost License 1.0.