object

# `cuid2(Representation,Size,Alphabet)`

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

- `Size` - Number of symbols in the Cuid2 identifier.

- `Alphabet` - Alphabet used for generating Cuid2 identifiers represented as an atom, list of characters, or list of character codes.

Cuid2 generator.

Availability:
`logtalk_load(cuid2(loader))`
Author: Paulo Moura
Version: 1:0:1
Date: 2026-06-01
Compilation flags:
`static, context_switching_calls`
Implements:
`public` cuid2_protocol
Uses:
crypto
list
Remarks:
(none)
Inherited public predicates:
generate/1

## 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)

See also

cuid2, ids(Representation,Bytes), ksuid(Representation,Alphabet), nanoid(Representation,Size,Alphabet), snowflakeid(Representation,EpochMilliseconds,TimeUnitMilliseconds,TimestampBits,NodeBits,SequenceBits,Node), ulid(Representation), uuid(Representation)