From 4a003bb5a2c45332d2c21830d6ff9ffa3c183739 Mon Sep 17 00:00:00 2001 From: Paul Shapiro Date: Sun, 21 Oct 2018 12:46:13 -0500 Subject: [PATCH] mnemonics/electrum-words/create_checksum_index(): updated to work with non fixed word list length mnemonic --- src/mnemonics/electrum-words.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } /*!