Assume wordlist will be 2048 words in size.

This commit is contained in:
Andreas Schildbach 2014-08-06 18:56:13 +02:00
parent 761b06fb8a
commit 549f228d29

View File

@ -87,7 +87,7 @@ public class MnemonicCode {
*/
public MnemonicCode(InputStream wordstream, String wordListDigest) throws IOException, IllegalArgumentException {
BufferedReader br = new BufferedReader(new InputStreamReader(wordstream, "UTF-8"));
this.wordList = new ArrayList<String>();
this.wordList = new ArrayList<String>(2048);
MessageDigest md;
try {
md = MessageDigest.getInstance("SHA-256");