.. index:: single: uuid(Representation)
.. _uuid/1:

.. rst-class:: right

**object**

``uuid(Representation)``
========================

* ``Representation`` - Text representation for the UUID. Possible values are ``atom``, ``chars``, and ``codes``.


Universally unique identifier (UUID) generator.

| **Availability:** 
|    ``logtalk_load(uuid(loader))``

| **Author:** Paulo Moura
| **Version:** 1:0:0
| **Date:** 2026-07-06

| **Compilation flags:**
|    ``static, context_switching_calls``


| **Implements:**
|    ``public`` :ref:`uuid_protocol <uuid_protocol/0>`
| **Uses:**
|    :ref:`crypto <crypto/0>`
|    :ref:`date <date/0>`
|    :ref:`iso8601 <iso8601/0>`
|    :ref:`list <list/0>`
|    :ref:`os <os/0>`

| **Remarks:**
|    (none)

| **Inherited public predicates:**
|     :ref:`uuid_protocol/0::random_node/1`  :ref:`uuid_protocol/0::uuid_max/1`  :ref:`uuid_protocol/0::uuid_nil/1`  :ref:`uuid_protocol/0::uuid_null/1`  :ref:`uuid_protocol/0::uuid_v1/2`  :ref:`uuid_protocol/0::uuid_v1/3`  :ref:`uuid_protocol/0::uuid_v3/3`  :ref:`uuid_protocol/0::uuid_v4/1`  :ref:`uuid_protocol/0::uuid_v5/3`  :ref:`uuid_protocol/0::uuid_v7/1`  :ref:`uuid_protocol/0::uuid_v7/2`  

.. contents::
   :local:
   :backlinks: top

Public predicates
-----------------

(no local declarations; see entity ancestors if any)

Protected predicates
--------------------

(no local declarations; see entity ancestors if any)

Private predicates
------------------

(no local declarations; see entity ancestors if any)

Operators
---------

(none)

.. seealso::

   :ref:`uuid <uuid/0>`, :ref:`cuid2(Representation,Size,Alphabet) <cuid2/3>`, :ref:`ksuid(Representation,Alphabet) <ksuid/2>`, :ref:`ids(Representation,Bytes) <ids/2>`, :ref:`nanoid(Representation,Size,Alphabet) <nanoid/3>`, :ref:`snowflakeid(Representation,EpochMilliseconds,TimeUnitMilliseconds,TimestampBits,NodeBits,SequenceBits,Node) <snowflakeid/7>`, :ref:`ulid(Representation) <ulid/1>`

