added new scripts and eup
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
Utils = {}
|
||||
|
||||
function Utils.GenerateUUID()
|
||||
local template ='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'
|
||||
return string.gsub(template, '[xy]', function (c)
|
||||
local v = (c == 'x') and math.random(0, 0xf) or math.random(8, 0xb)
|
||||
return string.format('%x', v)
|
||||
end)
|
||||
end
|
||||
Reference in New Issue
Block a user