Did you know ... Search Documentation:
Pack logtalk -- logtalk-3.102.0/docs/apis/_sources/nanoid_3.rst.txt

.. index:: single: nanoid(Representation,Size,Alphabet) .. _nanoid/3:

.. rst-class:: right

object

nanoid(Representation,Size,Alphabet)

  • Representation - Text representation for the NanoID. Possible values are atom, chars, and codes.
  • Size - Number of symbols in the NanoID.
  • Alphabet - Alphabet used for generating NanoIDs represented as an atom, list of characters, or list of character codes. NanoID generator.

    | Availability: | logtalk_load(nanoid(loader))

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

    | Compilation flags: | static, context_switching_calls

    | Implements: | public :ref:`nanoid_protocol <nanoid_protocol/0>` | Uses: | :ref:`crypto <crypto/0>` | :ref:`list <list/0>`

    | Remarks: | (none)

    | Inherited public predicates: | Â :ref:`nanoid_protocol/0::generate/1` Â

    .. 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:`nanoid <nanoid/0>`, :ref:`cuid2(Representation,Size,Alphabet) <cuid2/3>`, :ref:`ids(Representation,Bytes) <ids/2>`, :ref:`ksuid(Representation,Alphabet) <ksuid/2>`, :ref:`snowflakeid(Representation,EpochMilliseconds,TimeUnitMilliseconds,TimestampBits,NodeBits,SequenceBits,Node) <snowflakeid/7>`, :ref:`sqids(Representation) <sqids/1>`, :ref:`typeid(Representation) <typeid/1>`, :ref:`ulid(Representation) <ulid/1>`, :ref:`uuid(Representation) <uuid/1>`