util.pluginloader: Return full file path from internal file loader on success, not...
[prosody.git] / util / uuid.lua
index eca35134714b5722e4b9ca8fe338ff8596dfbf90..796c8ee4c47247dd049e6bb3561ab5223ced74bc 100644 (file)
@@ -1,6 +1,6 @@
--- Prosody IM v0.4
--- Copyright (C) 2008-2009 Matthew Wild
--- Copyright (C) 2008-2009 Waqas Hussain
+-- 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;