aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Shapiro <paulshapiro@users.noreply.github.com>2018-10-21 12:46:13 -0500
committerPaul Shapiro <paulshapiro@users.noreply.github.com>2018-10-21 12:46:13 -0500
commit4a003bb5a2c45332d2c21830d6ff9ffa3c183739 (patch)
tree0b2a96d7bd46a116b24250101a6f3f82a4181734 /src
parentMerge pull request #4524 (diff)
downloadmonero-4a003bb5a2c45332d2c21830d6ff9ffa3c183739.tar.xz
mnemonics/electrum-words/create_checksum_index(): updated to work with non fixed word list length mnemonic
Diffstat (limited to 'src')
-rw-r--r--src/mnemonics/electrum-words.cpp2
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();
}
/*!