From f6924a64c06b36b6d90b03137da8c1a682889285 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 4 Oct 2008 02:12:54 +0100 Subject: Add "uuid" library and make sessionmanager use this. ...and yes, the uuid generation needs work :P --- util/uuid.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 util/uuid.lua (limited to 'util') 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 -- cgit v1.2.3