QUuid change variant
Unsolved
General and Desktop
-
@MadBee I think you are confusing the UUID variant (DCE, the variant described in RFC 4122) with the UUID version (a sub-type of variant):
The following table lists the currently-defined versions for this UUID variant. Msb0 Msb1 Msb2 Msb3 Version Description 0 0 0 1 1 The time-based version specified in this document. 0 0 1 0 2 DCE Security version, with embedded POSIX UIDs. 0 0 1 1 3 The name-based version specified in this document that uses MD5 hashing. 0 1 0 0 4 The randomly or pseudo- randomly generated version specified in this document. 0 1 0 1 5 The name-based version specified in this document that uses SHA-1 hashing.
You get a version 4 (random) UUID by default QUuid::createUuid() but there are similar functions to create version 3 and 5 UUIDs. You can construct a QUuid object specifying all the components yourself to obtain a UUID of any variant or version.