All Projects → Kong → lua-uuid

Kong / lua-uuid

Licence: MIT License
Lua library to generate UUIDs leveraging libuuid

Programming Languages

Makefile
30231 projects
c
50402 projects - #5 most used programming language
lua
6591 projects

lua_uuid

Lua library that generate UUIDs leveraging libuuid.

Requirements

The uuid/uuid.h header must be available in the system INCLUDE_PATH, otherwise you will hit an error like:

ld: library not found for -luuid

Failed compiling module lua_uuid.so

  • Mac OS X
    • brew install ossp-uuid
  • Debian Linux; Ubuntu
    • apt-get install uuid-dev

Usage

To generate a new UUID string:

local uuid = require "lua_uuid"
local uuid_str = uuid()

print("New UUID: "..uuid_str)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].