Skip to content

Latest commit

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

uuids

UUID library for Nim.

API:

typeUUID*=object## 128-bit UUID compliant with RFC-4122procinitUUID*(mostSigBits, leastSigBits: int64): UUID=## Initializes UUID with the specified most and least significant bitsprocleastSigBits*(uuid: UUID): int64 {.inline.}
## Returns 64 least significant bits of the ``uuid``procmostSigBits*(uuid: UUID): int64 {.inline.}
## Returns 64 most significant bits of the ``uuid``proc`$`*(uuid: UUID): string## Returns a string representation of the ``uuid`` in canonical form.prochash*(uuid: UUID): Hash## Computes hash of the specified ``uuid``.proc`==`*(x, y: UUID): bool## Returns true when the specified UUIDs are equal, false otherwise.procisZero*(uuid: UUID): bool## Returns ``true`` when the ``uuid`` is zero (not set), ``false`` otherwise.procgenUUID*(): UUID## Returns a random (v4) UUID.## Uses a thread-local cryptographically secure PRNG (ISAAC) seeded with## true random values obtained from OS.procparseUUID*(s: string): UUID {.raises: [ValueError].}
## Converts string representation of an UUID to UUID object.## Raises ValueError if invalid format is provided.

License

This library is licensed under the MIT license. Read LICENSE file for details.

Copyright (c) 2016 Xored Software, Inc.

About

UUID library for Nim

Topics

Resources

Stars

40 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages