util/uuid.lua

Fri, 14 Nov 2008 02:20:46 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 14 Nov 2008 02:20:46 +0000
changeset 255
43a9683bcd19
parent 145
fbb3a4ff9cf1
child 519
cccd610a0ef9
permissions
-rw-r--r--

Fix for detecting when we are routing a stanza to ourself (I'm sure this has something to do with you, waqas...)


local m_random = math.random;
module "uuid"

function generate()
	return m_random(0, 99999999);
end

return _M;

mercurial