Skip to content

Commit

Permalink
Merge pull request #5508
Browse files Browse the repository at this point in the history
146c0a7 Add RandAddSeedPerfmon to MakeNewKey (21E14)
  • Loading branch information
sipa committed Jan 4, 2015
2 parents e8a6639 + 146c0a7 commit 9a5cabf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/key.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
1 change: 0 additions & 1 deletion src/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9a5cabf

Please sign in to comment.