diff --git a/util/generateEaglerUsername.js b/util/generateEaglerUsername.js index befa754..a37396a 100644 --- a/util/generateEaglerUsername.js +++ b/util/generateEaglerUsername.js @@ -9,8 +9,10 @@ function getRandomItem(arr) { return item; } -const username = getRandomItem(names) + getRandomItem(names) + (10 + Math.floor(Math.random() * 90)); +function genUsername() { + const username = getRandomItem(names) + getRandomItem(names) + (10 + Math.floor(Math.random() * 90)); -module.exports = function () { return username; -}; +} + +module.exports = genUsername;