Software /
code /
prosody
Diff
util/uuid.lua @ 762:5ae018c016ba
util.uuid: Return a string, not a number. Looked so innocent.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 01 Feb 2009 02:17:56 +0000 |
parent | 760:90ce865eebd8 |
child | 896:2c0b9e3c11c3 |
line wrap: on
line diff
--- 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