From c4ee1bd819543ceebff267a340511d943224dd07 Mon Sep 17 00:00:00 2001 From: Athozus Date: Fri, 5 Apr 2024 23:01:08 +0200 Subject: [PATCH] Revert util/uuid.lua changes to master --- util/uuid.lua | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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