Merge 0.9->0.10
[prosody.git] / util / uuid.lua
index d46f866511f4d6d7635d19e6f2daab51652cceaf..fc487c7283bcf4b3b364030faf28b28f25921fac 100644 (file)
@@ -1,7 +1,7 @@
 -- Prosody IM
 -- Copyright (C) 2008-2010 Matthew Wild
 -- Copyright (C) 2008-2010 Waqas Hussain
--- 
+--
 -- 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)
-       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;