Skip to content

Commit

Permalink
Merge pull request #8 from grempe/patches
Browse files Browse the repository at this point in the history
The call to getDices is redundant (and incorrect pluralization of Die/Dice)
  • Loading branch information
lgaticaq committed Sep 15, 2016
2 parents 3a6d85c + fa2469e commit 9da5201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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"
```
4 changes: 1 addition & 3 deletions src/index.js
Expand Up @@ -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({
Expand Down

0 comments on commit 9da5201

Please sign in to comment.