Software /
code /
prosody
Changeset
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 |
parents | 761:67ec69001fd7 |
children | 763:8e77a39826c2 |
files | util/uuid.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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