Browse Source

Add RandAddSeedPerfmon to MakeNewKey

0.13
21E14 10 years ago
parent
commit
146c0a7c5a
  1. 1
      src/key.cpp
  2. 1
      src/wallet.cpp

1
src/key.cpp

@ -34,6 +34,7 @@ bool CKey::Check(const unsigned char *vch) { @@ -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));

1
src/wallet.cpp

@ -70,7 +70,6 @@ CPubKey CWallet::GenerateNewKey() @@ -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);

Loading…
Cancel
Save