aboutsummaryrefslogtreecommitdiffstats
path: root/util/uuid.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-10-04 02:12:54 +0100
committerMatthew Wild <mwild1@gmail.com>2008-10-04 02:12:54 +0100
commitf6924a64c06b36b6d90b03137da8c1a682889285 (patch)
tree28e2c0c35f9d77e826fd03c1b973561c38e71c5b /util/uuid.lua
parent8d8cdb8574886137a29d8420d32ab42fcf95b75d (diff)
downloadprosody-f6924a64c06b36b6d90b03137da8c1a682889285.tar.gz
prosody-f6924a64c06b36b6d90b03137da8c1a682889285.zip
Add "uuid" library and make sessionmanager use this.
...and yes, the uuid generation needs work :P
Diffstat (limited to 'util/uuid.lua')
-rw-r--r--util/uuid.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/util/uuid.lua b/util/uuid.lua
new file mode 100644
index 00000000..489522aa
--- /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