diff --git a/util/uuid.lua b/util/uuid.lua index 4e2740a..571aa4a 100644 --- a/util/uuid.lua +++ b/util/uuid.lua @@ -1,11 +1,9 @@ -- source: https://gist.github.com/jrus/3197011 local random = math.random - function mail.new_uuid() local template ='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx' - return string.gsub(template, '[xy]', - function (c) - local v = (c == 'x') and random(0, 0xf) or random(8, 0xb) - return string.format('%x', v) - end) -end + return string.gsub(template, '[xy]', function (c) + local v = (c == 'x') and random(0, 0xf) or random(8, 0xb) + return string.format('%x', v) + end) +end \ No newline at end of file