aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/key.cpp1
-rw-r--r--src/wallet.cpp1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/key.cpp b/src/key.cpp
index 7f1cef1708..f09536fbbe 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 8504c0a287..4920cb21fc 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -71,7 +71,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);