From https://github.com/JacksonGariety/Yugen/blob/master/routes.j...
res.redirect(crypto.randomBytes(3).toString('hex'))
You probably already know this, but you'd probably want to replace that with a unique id generator, like perhaps MongoID or a timestamp or something.