mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #4684
4a003bb5
mnemonics/electrum-words/create_checksum_index(): updated to work with non fixed word list length mnemonic (Paul Shapiro)
This commit is contained in:
commit
5251496662
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ namespace
|
||||||
}
|
}
|
||||||
boost::crc_32_type result;
|
boost::crc_32_type result;
|
||||||
result.process_bytes(trimmed_words.data(), trimmed_words.length());
|
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 a new issue