Table of Contents
util.uuid API
Fairly often in XMPP you will want to generate pseudo-random, unique identifiers. The uuid library provides this functionality.
Usage
local uuid = require "util.uuid"; print("Your id is:", uuid.generate())
Reference
uuid.generate()
Returns an id, in the form of a string.
Note: As of Prosody 0.4, there is no guarantee that a generated id will actually be unique, though this will change (patches welcome).
