Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
fix(generate-seed): use 256-bit entropy when generating mnemonic
Browse files Browse the repository at this point in the history
  • Loading branch information
devinus committed Jun 6, 2018
1 parent 07eeef1 commit b3b7cfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/utils/generate-seed.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import bip39 from 'npm:bip39';

export default function generateSeed() {
const mnemonic = bip39.generateMnemonic();
return bip39.mnemonicToSeedHex(mnemonic).slice(0, 64).toUpperCase();
const mnemonic = bip39.generateMnemonic(256);
return bip39.mnemonicToEntropy(mnemonic).toUpperCase();
}

0 comments on commit b3b7cfe

Please sign in to comment.