util.id
This module provides randomized strings for use as identifiers. The URL-safe Base64 character set is used.
local id = require "util.id"
-- 48 bits of entropy
.short() --> aiEerlkh
id
-- 96 bits of entropy
.medium() --> 5U-U9kz5cZhdokJI
id
-- 192 bits of entropy
.long() --> N_9lHDBv_PHzPVy2dAasqLSMBMWubaEL
id
-- variable amount of entropy (n * 8 bits)
.custom(3) --> function () --> _BJm id