aboutsummaryrefslogtreecommitdiff
path: root/uuid.lua
diff options
context:
space:
mode:
Diffstat (limited to 'uuid.lua')
-rw-r--r--uuid.lua1
1 files changed, 1 insertions, 0 deletions
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.