object

# `ksuid(Representation,Alphabet)`

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

- `Alphabet` - Base62 alphabet used for encoding KSUIDs represented as an atom, list of characters, or list of character codes.

KSUID generator.

Availability:
`logtalk_load(ksuid(loader))`
Author: Paulo Moura
Version: 1:0:0
Date: 2026-02-26
Compilation flags:
`static, context_switching_calls`
Implements:
`public` ksuid_protocol
Uses:
fast_random(Algorithm)
iso8601
list
os
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

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