Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Make linting tool happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Warta committed Apr 7, 2018
1 parent 77af9cb commit 906c4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/passphrase.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const init = (rand = Math.random()) => {
* @returns {number[]} The input array whose member is pos is set
*/
export const generateSeed = ({ byte, seed, percentage, step } = init(), rand = Math.random()) => {
const available = byte.map((bit, index) => (!bit ? index : null)).filter(index => (index !== null));
const available = byte.map((bit, idx) => (!bit ? idx : null)).filter(idx => (idx !== null));
const seedIndex = (available.length > 0) ?
available[Math.floor(rand * available.length)] :
Math.floor(rand * byte.length);
Expand Down

0 comments on commit 906c4a7

Please sign in to comment.