projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1453e76
)
util.uuid: Return a string, not a number. Looked so innocent.
author
Matthew Wild
<mwild1@gmail.com>
Sun, 1 Feb 2009 02:17:56 +0000
(
02:17
+0000)
committer
Matthew Wild
<mwild1@gmail.com>
Sun, 1 Feb 2009 02:17:56 +0000
(
02:17
+0000)
util/uuid.lua
patch
|
blob
|
history
diff --git
a/util/uuid.lua
b/util/uuid.lua
index 5a355b0248fc08184ead51e2848c55ba2eb30fbe..cc5cae820143ec99c987145b105f2ce912bc2c1c 100644
(file)
--- 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