uuid

API Reference

uuid

UUID Generation

UUID

  • Variable *TICKS-PER-COUNT*
    1024
    Holds the amount of ticks per count. The ticks per count determine the number of possible version 1 uuids created for one time interval. Common Lisp provides INTERNAL-TIME-UNITS-PER-SECOND which gives the ticks per count for the current system so *ticks-per-count* can be set to INTERNAL-TIME-UNITS-PER-SECOND
  • Class UUID
    Represents an uuid
    TIME-LOW   Accessor: TIME-LOW
    TIME-MID   Accessor: TIME-MID
    TIME-HIGH-AND-VERSION   Accessor: TIME-HIGH
    CLOCK-SEQ-AND-RESERVED   Accessor: CLOCK-SEQ-VAR
    CLOCK-SEQ-LOW   Accessor: CLOCK-SEQ-LOW
    NODE   Accessor: NODE
  • Function MAKE-UUID-FROM-STRING (string)
    Creates an uuid from the string represenation of an uuid. (example input string 6ba7b810-9dad-11d1-80b4-00c04fd430c8)
  • Variable +NAMESPACE-DNS+
    (uuid:make-uuid-from-string "6ba7b810-9dad-11d1-80b4-00c04fd430c8")
    The DNS Namespace. Can be used for the generation of uuids version 3 and 5
  • Variable +NAMESPACE-URL+
    (uuid:make-uuid-from-string "6ba7b811-9dad-11d1-80b4-00c04fd430c8")
    The URL Namespace. Can be used for the generation of uuids version 3 and 5
  • Variable +NAMESPACE-OID+
    (uuid:make-uuid-from-string "6ba7b812-9dad-11d1-80b4-00c04fd430c8")
    The OID Namespace. Can be used for the generation of uuids version 3 and 5
  • Variable +NAMESPACE-X500+
    (uuid:make-uuid-from-string "6ba7b814-9dad-11d1-80b4-00c04fd430c8")
    The x500+ Namespace. Can be used for the generation of uuids version 3 and 5
  • Function PRINT-BYTES (stream uuid)
    Prints the raw bytes in hex form. (example output 6ba7b8109dad11d180b400c04fd430c8)
  • Function FORMAT-AS-URN (stream uuid)
    Prints the uuid as a urn
  • Function MAKE-NULL-UUID
    Generates a NULL uuid (i.e 00000000-0000-0000-0000-000000000000)
  • Function MAKE-V1-UUID
    Generates a version 1 (time-based) uuid.
  • Function MAKE-V3-UUID (namespace name)
    Generates a version 3 (named based MD5) uuid.
  • Function MAKE-V4-UUID
    Generates a version 4 (random) uuid
  • Function MAKE-V5-UUID (namespace name)
    Generates a version 5 (name based SHA1) uuid.
  • Function UUID= (uuid1 uuid2)
  • Function UUID-TO-BYTE-ARRAY (uuid)
    Converts an uuid to byte-array
  • Function BYTE-ARRAY-TO-UUID (array)
    Converts a byte-array generated with uuid-to-byte-array to an uuid.