Added isZero proc
This commit is contained in:
parent
360ad9b082
commit
c6783039ac
3 changed files with 11 additions and 2 deletions
|
|
@ -16,6 +16,9 @@ proc hash*(uuid: UUID): Hash
|
|||
proc `==`*(x, y: UUID): bool
|
||||
## Returns true when the specified UUIDs are equal, false otherwise.
|
||||
|
||||
proc isZero*(uuid: UUID): bool
|
||||
## Returns ``true`` when the UUID is zero (not set), ``false`` otherwise.
|
||||
|
||||
proc genUUID*(): UUID =
|
||||
## Returns a random (v4) UUID.
|
||||
## Uses a thread-local cryptographically secure PRNG (ISAAC) seeded with
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue