aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-11-04 20:43:27 +0200
committerRiccardo Spagni <ric@spagni.net>2018-11-04 20:43:28 +0200
commit52514966623e72435fcca49fb3d805e72a8382cc (patch)
tree2b892958cd4d44baa8640665c7b39fa3d6971456
parentMerge pull request #4683 (diff)
parentmnemonics/electrum-words/create_checksum_index(): updated to work with non fi... (diff)
downloadmonero-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)
-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();
}
/*!