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
@@ -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