From 09defcb90cceb907338d3beb8fffa63f6e25dc0e Mon Sep 17 00:00:00 2001 From: Glenn Rempe Date: Wed, 14 Sep 2016 22:15:26 -0700 Subject: [PATCH 1/2] The call to getDices is redundant (and incorrect pluralization of Die/Dice) --- src/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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({ From fa2469eb69d217245310d462198058de72a81dcd Mon Sep 17 00:00:00 2001 From: Glenn Rempe Date: Wed, 14 Sep 2016 23:18:19 -0700 Subject: [PATCH 2/2] Use an EFF wordlist example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ```