aboutsummaryrefslogtreecommitdiffstats
path: root/util/uuid.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-02-01 02:17:56 +0000
committerMatthew Wild <mwild1@gmail.com>2009-02-01 02:17:56 +0000
commit6db495119489d56524c013dac6b21d4f77d48e15 (patch)
tree64b4324fd5aaa0299a25ceefccc7346cbf21e637 /util/uuid.lua
parent89d7887278ed2c98610f52d1bbf802105c87e954 (diff)
downloadprosody-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.lua3
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