diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-04-01 19:27:26 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-04-01 19:27:26 +0500 |
commit | 3ee35fe849abab96c33b9774fe439759943436a5 (patch) | |
tree | 2636bbe2cabb830632599cebf10219ba07a6dcd4 /util/uuid.lua | |
parent | bc55b5ad8f2dfd3f6d22905900ea009fc19fcda5 (diff) | |
download | prosody-3ee35fe849abab96c33b9774fe439759943436a5.tar.gz prosody-3ee35fe849abab96c33b9774fe439759943436a5.zip |
util.uuid: Use a local instead of a global.
Diffstat (limited to 'util/uuid.lua')
-rw-r--r-- | util/uuid.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/uuid.lua b/util/uuid.lua index d46f8665..796c8ee4 100644 --- a/util/uuid.lua +++ b/util/uuid.lua @@ -32,7 +32,7 @@ local function _seed(x) 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; |