UUID Built-Ins¶
UUID Built-ins generate a random UUID.
Syntax
1 | <result UUID> := randomUUID() |
Returns
The randomly generated UUID.
Example
1 | myUUID := randomUUID().toString() |
Using the example of a UUID 8d4a3216-642b-4412-9426-19cd5f371cd4
, the following returns the least significant 64 bits of the UUID's 128 bit value:
1 | myUUID := randomUUID().getLeastSignificantBits() |
While the following returns the most significant 64 bits of this UUID's 128 bit value:
gomyUUID := randomUUID().getMostSignificantBits()