"use strict";
letHashids = require("hashids");
let config = require("../config");
/**
* Create a Hash ID generator by module name.
* Use `module` as prefix of the `hashSecret`
*/module.exports = function(module, length) {
returnnewHashids(module + config.hashSecret, length || 10);
};