projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mod_c2s, mod_s2s: Log a message that stream encryption has been enabled with some...
[prosody.git]
/
util
/
uuid.lua
diff --git
a/util/uuid.lua
b/util/uuid.lua
index eca35134714b5722e4b9ca8fe338ff8596dfbf90..796c8ee4c47247dd049e6bb3561ab5223ced74bc 100644
(file)
--- a/
util/uuid.lua
+++ b/
util/uuid.lua
@@
-1,6
+1,6
@@
--- Prosody IM
v0.4
--- Copyright (C) 2008-20
09
Matthew Wild
--- Copyright (C) 2008-20
09
Waqas Hussain
+-- Prosody IM
+-- Copyright (C) 2008-20
10
Matthew Wild
+-- Copyright (C) 2008-20
10
Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
@@
-32,7
+32,7
@@
local function _seed(x)
buffer = new_random(buffer..x);
end
local function get_nibbles(n)
buffer = new_random(buffer..x);
end
local function get_nibbles(n)
- if #buffer < n then seed(uniq_time()); end
+ if #buffer < n then
_
seed(uniq_time()); end
local r = buffer:sub(0, n);
buffer = buffer:sub(n+1);
return r;
local r = buffer:sub(0, n);
buffer = buffer:sub(n+1);
return r;