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

Lua Support Libs
amoeba
eq
opengl
luastate
cbframe
path
unixperms
dynasm
rangelist
uuid

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: 10 months ago | Edit on GitHub

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

Requires: none

Required by: none


Top