# HG changeset patch # User Matthew Wild # Date 1233454676 0 # Node ID 5ae018c016ba8dd72feaae20e9c7a69ab308cb5a # Parent 67ec69001fd73b2918d25c195bad75e4edc872e4 util.uuid: Return a string, not a number. Looked so innocent. diff -r 67ec69001fd7 -r 5ae018c016ba 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