Thu, 01 Apr 2010 19:27:26 +0500
util.uuid: Use a local instead of a global.
util/uuid.lua | file | annotate | diff | comparison | revisions |
--- a/util/uuid.lua Thu Apr 01 19:12:08 2010 +0500 +++ b/util/uuid.lua Thu Apr 01 19:27:26 2010 +0500 @@ -32,7 +32,7 @@ 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;