mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 13:32:47 +01:00
Add RandAddSeedPerfmon to MakeNewKey
This commit is contained in:
parent
4444b879bc
commit
146c0a7c5a
@ -34,6 +34,7 @@ bool CKey::Check(const unsigned char *vch) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CKey::MakeNewKey(bool fCompressedIn) {
|
void CKey::MakeNewKey(bool fCompressedIn) {
|
||||||
|
RandAddSeedPerfmon();
|
||||||
do {
|
do {
|
||||||
GetRandBytes(vch, sizeof(vch));
|
GetRandBytes(vch, sizeof(vch));
|
||||||
} while (!Check(vch));
|
} while (!Check(vch));
|
||||||
|
@ -70,7 +70,6 @@ CPubKey CWallet::GenerateNewKey()
|
|||||||
AssertLockHeld(cs_wallet); // mapKeyMetadata
|
AssertLockHeld(cs_wallet); // mapKeyMetadata
|
||||||
bool fCompressed = CanSupportFeature(FEATURE_COMPRPUBKEY); // default to compressed public keys if we want 0.6.0 wallets
|
bool fCompressed = CanSupportFeature(FEATURE_COMPRPUBKEY); // default to compressed public keys if we want 0.6.0 wallets
|
||||||
|
|
||||||
RandAddSeedPerfmon();
|
|
||||||
CKey secret;
|
CKey secret;
|
||||||
secret.MakeNewKey(fCompressed);
|
secret.MakeNewKey(fCompressed);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user