diff --git a/README.md b/README.md index 407561e..059b2c3 100644 --- a/README.md +++ b/README.md @@ -40,5 +40,5 @@ const options = { } const pass = dwGen(options); console.log(pass); -// "belle visit wag tung podge phase" +// "lavender lunacy quickness ladybug playful reaffirm" ``` diff --git a/src/index.js b/src/index.js index 60157bf..43ba18b 100644 --- a/src/index.js +++ b/src/index.js @@ -18,9 +18,7 @@ const range = max => Array.apply(null, Array(max)).map((_, i) => i); const diceSeq = count => range(count).map(() => diceRoll()).join(''); -const getDices = () => diceSeq(5); - -const getRandomWord = language => language[getDices()]; +const getRandomWord = language => language[diceSeq(5)]; const getRandomPassword = options => { options = Object.assign({