We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4444b87 commit 146c0a7Copy full SHA for 146c0a7
src/key.cpp
@@ -34,6 +34,7 @@ bool CKey::Check(const unsigned char *vch) {
34
}
35
36
void CKey::MakeNewKey(bool fCompressedIn) {
37
+ RandAddSeedPerfmon();
38
do {
39
GetRandBytes(vch, sizeof(vch));
40
} while (!Check(vch));
src/wallet.cpp
@@ -70,7 +70,6 @@ CPubKey CWallet::GenerateNewKey()
70
AssertLockHeld(cs_wallet); // mapKeyMetadata
71
bool fCompressed = CanSupportFeature(FEATURE_COMPRPUBKEY); // default to compressed public keys if we want 0.6.0 wallets
72
73
- RandAddSeedPerfmon();
74
CKey secret;
75
secret.MakeNewKey(fCompressed);
76
0 commit comments