util.uuid: Use a local instead of a global.

This commit is contained in:
Waqas Hussain 2010-04-01 19:27:26 +05:00
parent bc55b5ad8f
commit 3ee35fe849

View file

@ -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;