util.uuid: Return a string, not a number. Looked so innocent.
authorMatthew Wild <mwild1@gmail.com>
Sun, 1 Feb 2009 02:17:56 +0000 (02:17 +0000)
committerMatthew Wild <mwild1@gmail.com>
Sun, 1 Feb 2009 02:17:56 +0000 (02:17 +0000)
util/uuid.lua

index 5a355b0248fc08184ead51e2848c55ba2eb30fbe..cc5cae820143ec99c987145b105f2ce912bc2c1c 100644 (file)
@@ -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