mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
mnemonics/electrum-words/create_checksum_index(): updated to work with non fixed word list length mnemonic
This commit is contained in:
parent
2287fb9fb4
commit
4a003bb5a2
@ -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();
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user