Add RandAddSeedPerfmon to MakeNewKey

This commit is contained in:
21E14 2014-12-18 20:25:04 -05:00
parent 4444b879bc
commit 146c0a7c5a
2 changed files with 1 additions and 1 deletions

View file

@ -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));

View file

@ -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);