diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-11-04 20:43:27 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-11-04 20:43:28 +0200 |
commit | 52514966623e72435fcca49fb3d805e72a8382cc (patch) | |
tree | 2b892958cd4d44baa8640665c7b39fa3d6971456 /src | |
parent | Merge pull request #4683 (diff) | |
parent | mnemonics/electrum-words/create_checksum_index(): updated to work with non fi... (diff) | |
download | monero-52514966623e72435fcca49fb3d805e72a8382cc.tar.xz |
Merge pull request #4684
4a003bb5 mnemonics/electrum-words/create_checksum_index(): updated to work with non fixed word list length mnemonic (Paul Shapiro)
Diffstat (limited to 'src')
-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(); } /*! |