README.md

ulid-0.0.1 documentation

Package

Name
ulid
Version
0.0.1
Uploaded
2026-07-30 00:39:59
Repository
https://github.com/tobyink/zuzu-ulid
Dependencies
Metadata
zuzu-distribution.json
Archive
Download .tar.gz

ulid

Generate Universally Unique Lexicographically Sortable Identifiers in ZuzuScript.

from ulid import create_ulid, create_ulid_binary;

say create_ulid();
let raw := create_ulid_binary();

create_ulid() returns the canonical 26-character uppercase Crockford Base32 form. create_ulid_binary() returns the same 128-bit layout as a 16-byte BinaryString.

Each identifier contains a 48-bit Unix timestamp in milliseconds and an 80-bit random component generated by std/secure. Identifiers generated within the same millisecond use monotonic randomness so that later identifiers continue to sort after earlier ones.