diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-04-01 17:23:25 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-04-01 17:23:25 +0200 |
commit | 89fb0e3cd6ead1cb8e24ef94571d138e9e273dc0 (patch) | |
tree | b5229d70c736ef4b383e7db146d7213040199d36 /src/mnemonics | |
parent | Merge pull request #5294 (diff) | |
parent | mnemonics: fix half length seed to bytes conversion (diff) | |
download | monero-89fb0e3cd6ead1cb8e24ef94571d138e9e273dc0.tar.xz |
Merge pull request #5295
2b10f22a mnemonics: fix half length seed to bytes conversion (moneromooo-monero)
Diffstat (limited to 'src/mnemonics')
-rw-r--r-- | src/mnemonics/electrum-words.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mnemonics/electrum-words.cpp b/src/mnemonics/electrum-words.cpp index 48c9ab1ba..2dd40cc9a 100644 --- a/src/mnemonics/electrum-words.cpp +++ b/src/mnemonics/electrum-words.cpp @@ -340,9 +340,7 @@ namespace crypto const size_t expected = len * 3 / 32; if (seed.size() == expected/2) { - dst += ' '; // if electrum 12-word seed, duplicate - dst += dst; // if electrum 12-word seed, duplicate - dst.pop_back(); // trailing space + dst.append(dst.data(), dst.size()); // if electrum 12-word seed, duplicate } } |