Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const next = ()=>{
if (!running) return;
id += 1;
let level = Log.levels[(Math.random()*Log.levels.length)|0];
Log.log(level,"This is log message "+id);
setTimeout(next,(Math.random()*FREQ)|0);
};