Mongoose plugin to generate a random hash