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

Thu, 01 Apr 2010 19:27:26 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Thu, 01 Apr 2010 19:27:26 +0500
changeset 2957
805b067cd13e
parent 2956
15a145a67044
child 2958
49d6bf241653

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;

mercurial