util/uuid.lua

Fri, 21 Nov 2008 05:59:03 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 21 Nov 2008 05:59:03 +0000
changeset 372
e7c1e30d06d5
parent 145
fbb3a4ff9cf1
child 519
cccd610a0ef9
permissions
-rw-r--r--

Now possible to specify nil origin to core_route_stanza. Origin will be chosen as the host of the 'from' attribute on the stanza. Returns false on no such host.


local m_random = math.random;
module "uuid"

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

return _M;

mercurial