aboutsummaryrefslogtreecommitdiff
path: root/uuid.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-06-18 15:44:29 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-06-18 15:44:35 -0700
commit16d127abb507751808eca65108710d3de1fd3cab (patch)
tree53a78ad2e88a95048eea76426e62c05c2c5102a5 /uuid.lua
parentfc71b0331b6122c774585c3ab93e6e55978ecaf2 (diff)
Initial working version.
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.