aboutsummaryrefslogtreecommitdiffstats
path: root/util/uuid.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-01-08 16:21:05 +0100
committerKim Alvefur <zash@zash.se>2016-01-08 16:21:05 +0100
commit8cdd08825d3ab4afddc12ddf75dc9af1924e8518 (patch)
treeb72ea8b35e4dae603543a1b490f959f32b930870 /util/uuid.lua
parent3d0f3a9db092d06daa782135077acfaf9b40b69c (diff)
parentb3d9c810676d288d193e4dcc3d95456e8a050f0e (diff)
downloadprosody-8cdd08825d3ab4afddc12ddf75dc9af1924e8518.tar.gz
prosody-8cdd08825d3ab4afddc12ddf75dc9af1924e8518.zip
Merge 0.10->trunk
Diffstat (limited to 'util/uuid.lua')
-rw-r--r--util/uuid.lua2
1 files changed, 1 insertions, 1 deletions
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()