var cryptorequire('crypto'); var _require('lodash'); module.exports = function (length){ if (!_.isFinite(length)) length = 10; return crypto.randomBytes(length).toString('hex'); } ;