mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-17 01:37:53 +00:00
polyseed: ensure alternative entropy is wiped before normal create
This commit is contained in:
parent
e40d4efd54
commit
3dd6dbc9ba
1 changed files with 1 additions and 0 deletions
|
@ -131,6 +131,7 @@ namespace polyseed {
|
|||
|
||||
void data::create(feature_type features) {
|
||||
check_init();
|
||||
sodium_memzero(seed, POLYSEED_RANDBYTES);
|
||||
auto status = polyseed_create(features, &m_data);
|
||||
if (status != POLYSEED_OK) {
|
||||
throw get_error(status);
|
||||
|
|
Loading…
Reference in a new issue