/** * Generates a 50 character long javascript string out of the whole utf-8 range. */ function createSomeMessage(){ const length = 50; let arr = []; for (let i= 0; i < length; i++){ arr.push(String.fromCharCode( Math.floor(Math.random() * 10174) + 1)); } return arr.join(''); } module.exports = { createSomeMessage: createSomeMessage };