Sun, 01 Feb 2009 02:17:56 +0000
util.uuid: Return a string, not a number. Looked so innocent.
util/uuid.lua | file | annotate | diff | comparison | revisions |
--- 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