local M = {} local charset = {} do-- [0-9a-zA-Z] for c = 48, 57dotable.insert(charset, string.char(c)) end for c = 65, 90dotable.insert(charset, string.char(c)) end for c = 97, 122dotable.insert(charset, string.char(c)) end end functionM.uuid(length) local res = "" for i = 1, length do res = res .. charset[math.random(1, #charset)] end return res end return M