util.uuid: Return a string, not a number. Looked so innocent.
authorMatthew Wild <mwild1@gmail.com>
Sun, 01 Feb 2009 02:17:56 +0000
changeset 762 5ae018c016ba
parent 761 67ec69001fd7
child 763 8e77a39826c2
util.uuid: Return a string, not a number. Looked so innocent.
util/uuid.lua
--- a/util/uuid.lua	Fri Jan 30 18:03:28 2009 +0000
+++ b/util/uuid.lua	Sun Feb 01 02:17:56 2009 +0000
@@ -9,10 +9,11 @@
 
 
 local m_random = math.random;
+local tostring = tostring;
 module "uuid"
 
 function generate()
-	return m_random(0, 99999999);
+	return tostring(m_random(0, 99999999));
 end
 
 return _M;
\ No newline at end of file