]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blobdiff - src/js/index.js
Raw entropy is interpreted as binary
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / src / js / index.js
index 472d392964c011dfa8d68cc93d9efe40c7b327d5..8caa0ed440cfc3dcc012a15c2615a83cc4094024 100644 (file)
         }
         phraseChangeTimeoutEvent = setTimeout(function() {
             phraseChanged();
-            var entropy = mnemonic.toRawEntropyHex(DOM.phrase.val());
+            var entropy = mnemonic.toRawEntropyBin(DOM.phrase.val());
             if (entropy !== null) {
                 DOM.entropyMnemonicLength.val("raw");
                 DOM.entropy.val(entropy);