mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
polyseed: ensure alternative entropy is wiped before normal create
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user