Provides a UUIDv4 generator. DMPACK uses 32 characters long UUIDv4 identifiers in hexadecimal format, without hyphens.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | UUID_LEN | = | 32 |
Hex UUIDv4 length. |
integer, | public, | parameter | :: | UUID_FULL_LEN | = | 36 |
Full UUIDv4 length (with hyphens). |
character(len=*), | public, | parameter | :: | UUID_DEFAULT | = | repeat('0', UUID_LEN) |
Default ID (hex). |
Generates random UUIDv4 (RFC 4122) in hexadecimal format, i.e.,
without hyphens (32 characters long). The PRNG has to be seeded
before the first invocation by calling dm_init()
once.
Returns UUIDv4 with hyphens (36 characters long). The PRNG has to be
seeded before the first invocation by calling dm_init()
once.
Returns given UUID with hyphens, i.e., turns string
00000000000000000000000000000000
into
00000000-0000-0000-0000-000000000000
. The function does not
validate the passed indentifier.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=UUID_LEN), | intent(in) | :: | uuid |
Returns .true.
if given UUID in hex format is a valid UUIDv4. Only
lower-case letters are valid.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | uuid |
UUIDv4 to validate. |