Synclets logoSynclets

getUniqueId

The getUniqueId function generates a unique ID string of the requested length.

getUniqueId(length?: number): string
TypeDescription
length?number

The number of characters in the ID.

returnsstring

A random unique ID string.

This function creates cryptographically random identifiers suitable for use as Synclet addresses or other unique identifiers. The generated IDs are URL-safe and contain characters from the set [A-Za-z0-9_-].

Since

v0.0.0