Skip to content

Commit

Permalink
Merge pull request #653 from webmaster128/noop-seed-init
Browse files Browse the repository at this point in the history
Remove noop in seed initialization - Subtask #663
  • Loading branch information
reyraa committed Apr 5, 2018
2 parents 8b7e139 + 7b2d037 commit 6c8c52e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/passphrase.js
Expand Up @@ -32,8 +32,7 @@ const leftPadd = (str, pad, length) => {
* Resets previous settings and creates a step with a random length between 1.6% to 3.2%
*/
const init = (rand = Math.random()) => {
let step = (160 + Math.floor(rand * 160)) / 100;
step = step >= 0.01 ? step : 0.1 + (step * 5);
const step = (160 + Math.floor(rand * 160)) / 100;
return {
step,
percentage: 0,
Expand Down

0 comments on commit 6c8c52e

Please sign in to comment.