projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add "uuid" library and make sessionmanager use this.
[prosody.git]
/
util
/
uuid.lua
diff --git a/util/uuid.lua
b/util/uuid.lua
new file mode 100644
(file)
index 0000000..
489522a
--- /dev/null
+++ b/
util/uuid.lua
@@ -0,0
+1,9
@@
+
+local m_random = math.random;
+module "uuid"
+
+function uuid_generate()
+ return m_random(0, 99999999);
+end
+
+return _M;
\ No newline at end of file