Builtin Library
README.md
world_vcs.ulid
The commit ids world_vcs allocates: 26-character ULIDs in Crockford base32, 48 bits of millisecond timestamp and 80 bits of math.random() randomness. Enough to keep ids allocated on different engines apart.
newUlid()answers a fresh id.isUlid(s)answers whethershas the shape of one.
local Ulid = require("modules.world_vcs.ulid")
local id = Ulid.newUlid()
assert(Ulid.isUlid(id))