diff --git a/src/utils/passphrase.js b/src/utils/passphrase.js index fe75785a7..25ac2d4af 100644 --- a/src/utils/passphrase.js +++ b/src/utils/passphrase.js @@ -29,12 +29,16 @@ 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()) => ({ - step: (160 + Math.floor(rand * 160)) / 100, - percentage: 0, - seed: emptyByte('00'), - byte: emptyByte(0), -}); +const init = (rand = Math.random()) => { + let step = Math.max((160 + Math.floor(rand * 160))); + step = step >= 0.01 ? step : step * 10; + return { + step, + percentage: 0, + seed: emptyByte('00'), + byte: emptyByte(0), + }; +}; /** * - From a zero byte: