diff options
author | Paul Shapiro <paulshapiro@users.noreply.github.com> | 2018-10-21 12:46:13 -0500 |
---|---|---|
committer | Paul Shapiro <paulshapiro@users.noreply.github.com> | 2018-10-21 12:46:13 -0500 |
commit | 4a003bb5a2c45332d2c21830d6ff9ffa3c183739 (patch) | |
tree | 0b2a96d7bd46a116b24250101a6f3f82a4181734 /src/mnemonics | |
parent | Merge pull request #4524 (diff) | |
download | monero-4a003bb5a2c45332d2c21830d6ff9ffa3c183739.tar.xz |
mnemonics/electrum-words/create_checksum_index(): updated to work with non fixed word list length mnemonic
Diffstat (limited to 'src/mnemonics')
-rw-r--r-- | src/mnemonics/electrum-words.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mnemonics/electrum-words.cpp b/src/mnemonics/electrum-words.cpp index 3d6338856..496e26858 100644 --- a/src/mnemonics/electrum-words.cpp +++ b/src/mnemonics/electrum-words.cpp @@ -215,7 +215,7 @@ namespace } boost::crc_32_type result; result.process_bytes(trimmed_words.data(), trimmed_words.length()); - return result.checksum() % crypto::ElectrumWords::seed_length; + return result.checksum() % word_list.size(); } /*! |