lights FAQ Forum github.com/luapower/uuid
This package
uuid

Misc
ace.js
csv
daemon
dollar
font_db
fonts-amiri
fonts-awesome
fonts-dejavuserif
fonts-fireflysung
fonts-fixedsys
fonts-ionicons
fonts-material-icons
fonts-noto-emoji
fonts-open-sans
http
luamyadmin
lx
minizip2
resty-core
resty-lrucache
resty.http
resty.mail
resty.string
socket2
uri
uuid
website
x-widgets
xlsxwriter

uuid

Fast and dependency-free UUID library for LuaJIT


local uuid = require'uuid'

Fast and dependency-free UUID library for LuaJIT.

API

uuid() -> s

Return a v4 (randomly generated) UUID.

Don’t forget to seed the randomizer first, eg. with math.randomseed(require'time'.clock()) or what have you.

uuid.is_valid(s) -> true|false

Check if an UUID is valid.


Last updated: 20 days ago | Edit on GitHub

Package:uuid
Pkg type:Lua
Version: e1053cb
Last commit:
Author: Thibault Charbonnier
License: MIT

Requires: none

Required by: none


Top