From 146c0a7c5acc06070badf1db442520fab5395614 Mon Sep 17 00:00:00 2001 From: 21E14 <21xe14@gmail.com> Date: Thu, 18 Dec 2014 20:25:04 -0500 Subject: [PATCH] Add RandAddSeedPerfmon to MakeNewKey --- src/key.cpp | 1 + src/wallet.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/key.cpp b/src/key.cpp index 36613342b..3d5886d35 100644 --- a/src/key.cpp +++ b/src/key.cpp @@ -34,6 +34,7 @@ bool CKey::Check(const unsigned char *vch) { } void CKey::MakeNewKey(bool fCompressedIn) { + RandAddSeedPerfmon(); do { GetRandBytes(vch, sizeof(vch)); } while (!Check(vch)); diff --git a/src/wallet.cpp b/src/wallet.cpp index 32a64daac..b6699a41d 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -70,7 +70,6 @@ CPubKey CWallet::GenerateNewKey() AssertLockHeld(cs_wallet); // mapKeyMetadata bool fCompressed = CanSupportFeature(FEATURE_COMPRPUBKEY); // default to compressed public keys if we want 0.6.0 wallets - RandAddSeedPerfmon(); CKey secret; secret.MakeNewKey(fCompressed);