Did you know ... Search Documentation:
Pack logtalk -- logtalk-3.77.0/docs/_sources/ids_2.rst.txt

.. index:: ids(Representation,Bytes) .. _ids/2:

.. rst-class:: right

object

ids(Representation,Bytes)

  • Representation - Text representation for the identifier. Possible values are atom, chars, and codes.
  • Bytes - Number of bytes of randomness. Generator of random identifiers.

    | Availability: | logtalk_load(ids(loader))

    | Author: Paulo Moura | Version: 1:0:0 | Date: 2022-11-23

    | Compilation flags: | static, context_switching_calls

    | Uses: | :ref:`base64 <base64/0>` | :ref:`fast_random <fast_random/0>` | :ref:`list <list/0>` | :ref:`os <os/0>`

    | Remarks: | (none)

    | Inherited public predicates: | (none)

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

Public predicates

.. index:: generate/1 .. _ids/2::generate/1:

generate/1 ^^^^^^^^^^^^^^

Generate a random identifier.

| Compilation flags: | static

| Template: | generate(Identifier) | Mode and number of proofs: | generate(--textids) - one


Protected predicates

(no local declarations; see entity ancestors if any)

Private predicates

(no local declarations; see entity ancestors if any)

Operators

(none)

.. seealso::

:ref:`ids <ids/0>`, :ref:`uuid <uuid/0>`, :ref:`ulid <ulid/0>`