Skip to content

Commit

Permalink
24213 followup
Browse files Browse the repository at this point in the history
  • Loading branch information
PastaPastaPasta committed Jun 5, 2024
1 parent 935eb21 commit 0a5e368
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bls/bls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void CBLSSecretKey::MakeNewKey()
{
unsigned char buf[SerSize];
while (true) {
GetStrongRandBytes(buf, sizeof(buf));
GetStrongRandBytes({buf, sizeof(buf)});
try {
impl = bls::PrivateKey::FromBytes(bls::Bytes(reinterpret_cast<const uint8_t*>(buf), SerSize));
break;
Expand Down
2 changes: 1 addition & 1 deletion src/bls/bls_ies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void CBLSIESMultiRecipientBlobs::InitEncrypt(size_t count)
{
ephemeralSecretKey.MakeNewKey();
ephemeralPubKey = ephemeralSecretKey.GetPublicKey();
GetStrongRandBytes(ivSeed.begin(), ivSeed.size());
GetStrongRandBytes({ivSeed.begin(), ivSeed.size()});

uint256 iv = ivSeed;
ivVector.resize(count);
Expand Down
2 changes: 1 addition & 1 deletion src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ void PeerManagerImpl::PushNodeVersion(CNode& pnode, const Peer& peer)
CAddress addrMe = CAddress(CService(), nLocalNodeServices);

uint256 mnauthChallenge;
GetRandBytes(mnauthChallenge.begin(), mnauthChallenge.size());
GetRandBytes({mnauthChallenge.begin(), mnauthChallenge.size()});
pnode.SetSentMNAuthChallenge(mnauthChallenge);

int nProtocolVersion = PROTOCOL_VERSION;
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/bip39.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SecureString CMnemonic::Generate(int strength)
return SecureString();
}
SecureVector data(32);
GetStrongRandBytes(data.data(), 32);
GetStrongRandBytes({data.data(), 32});
SecureString mnemonic = FromData(data, strength / 8);
return mnemonic;
}
Expand Down

0 comments on commit 0a5e368

Please sign in to comment.