X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=util%2Fuuid.lua;h=f4fd21f64ec72b9fc3e45f2973c9a1d9d9fabeff;hb=76e441c85feb7186cb9b1dcfb5b89fe66bb709f7;hp=e10fc0f72290a996c09560632e4c94603dff74fb;hpb=f6b3f550857678d676b31c5338f4bc6a93df1339;p=prosody.git diff --git a/util/uuid.lua b/util/uuid.lua index e10fc0f7..f4fd21f6 100644 --- a/util/uuid.lua +++ b/util/uuid.lua @@ -16,7 +16,7 @@ local function get_nibbles(n) end local function get_twobits() - return ("%x"):format(get_nibbles(1):byte() % 4 + 8); + return ("%x"):format(random_bytes(1):byte() % 4 + 8); end local function generate()