util/uuid.lua

Sat, 04 Oct 2008 17:59:32 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 04 Oct 2008 17:59:32 +0100
changeset 57
126b25079399
parent 44
80d2ade0fd69
child 145
fbb3a4ff9cf1
permissions
-rw-r--r--

Fix setting resource before we even know what it is


local m_random = math.random;
module "uuid"

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

return _M;

mercurial