STRING:UUID¶
This generator expression belongs to the String Generations family. See that section for related generator expressions.
Syntax¶
$<STRING:UUID,NAMESPACE:namespace,TYPE:(MD5|SHA1)[,NAME:name][,CASE:(LOWER|UPPER)]>
Added in version 4.3.
Create a universally unique identifier (aka GUID) as per RFC4122. A UUID has the
format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx where each x represents an
hexadecimal character.
The UUID is based on the hash of the combined values of:
NAMESPACE:namespacenamespacewhich has to be a valid UUID.NAME:namenameis an arbitrary string.TYPE:The hash algorithm can be either:
MD5Version 3 UUID.
SHA1Version 5 UUID.
CASE:Specify the case of the hexadecimal characters.
LOWERHexadecimal characters are all of lowercase. This is the default.
UPPERHexadecimal characters are all of uppercase.