diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-18 15:44:29 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-18 15:44:35 -0700 |
| commit | 16d127abb507751808eca65108710d3de1fd3cab (patch) | |
| tree | 53a78ad2e88a95048eea76426e62c05c2c5102a5 /uuid.lua | |
| parent | fc71b0331b6122c774585c3ab93e6e55978ecaf2 (diff) | |
Initial working version.
Diffstat (limited to 'uuid.lua')
| -rw-r--r-- | uuid.lua | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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. |
