From 16d127abb507751808eca65108710d3de1fd3cab Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 18 Jun 2018 15:44:29 -0700 Subject: Initial working version. --- uuid.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'uuid.lua') diff --git a/uuid.lua b/uuid.lua index 563b950..ac4df1e 100644 --- a/uuid.lua +++ b/uuid.lua @@ -1,4 +1,5 @@ -- A simple UUID function based on RFC 4122: http://www.ietf.org/rfc/rfc4122.txt +local unpack = unpack or table.unpack local function uuid() local r = math.random -- Set all the other bits to randomly (or pseudo-randomly) chosen values. -- cgit v1.2.3