diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-02-01 02:17:56 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-02-01 02:17:56 +0000 |
commit | 6db495119489d56524c013dac6b21d4f77d48e15 (patch) | |
tree | 64b4324fd5aaa0299a25ceefccc7346cbf21e637 /util/uuid.lua | |
parent | 89d7887278ed2c98610f52d1bbf802105c87e954 (diff) | |
download | prosody-6db495119489d56524c013dac6b21d4f77d48e15.tar.gz prosody-6db495119489d56524c013dac6b21d4f77d48e15.zip |
util.uuid: Return a string, not a number. Looked so innocent.
Diffstat (limited to 'util/uuid.lua')
-rw-r--r-- | util/uuid.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/uuid.lua b/util/uuid.lua index 5a355b02..cc5cae82 100644 --- a/util/uuid.lua +++ b/util/uuid.lua @@ -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 |