|
|
@ -105,9 +105,9 @@ exports.defaultConfig = cfg;
|
|
|
|
exports.Config = Config;
|
|
|
|
exports.Config = Config;
|
|
|
|
|
|
|
|
|
|
|
|
function randomise(cb, conf) {
|
|
|
|
function randomise(cb, conf) {
|
|
|
|
if(conf)
|
|
|
|
if(!conf)
|
|
|
|
var cfg = conf;
|
|
|
|
return randomise(cb, cfg);
|
|
|
|
cfg.debug("Calling with params "+JSON.stringify(cfg));
|
|
|
|
conf.debug("Calling with params "+JSON.stringify(conf));
|
|
|
|
randomiseWith(cfg.debug, cfg.number, cfg.range, cfg.page, cfg.tags, cb);
|
|
|
|
randomiseWith(conf.debug, conf.number, conf.range, conf.page, conf.tags, cb);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
exports.randomise = randomise;
|
|
|
|
exports.randomise = randomise;
|
|
|
|