Skip to content

Commit

Permalink
crypto: fix warning of ignoring return value
Browse files Browse the repository at this point in the history
PR-URL: #56527
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
  • Loading branch information
zcbenz authored Jan 11, 2025
1 parent 0576deb commit 8ca2956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/ncrypto/ncrypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ bool BignumPointer::generate(const PrimeConfig& params,
PrimeCheckCallback innerCb) const {
// BN_generate_prime_ex() calls RAND_bytes_ex() internally.
// Make sure the CSPRNG is properly seeded.
CSPRNG(nullptr, 0);
std::ignore = CSPRNG(nullptr, 0);
BignumGenCallbackPointer cb(nullptr);
if (innerCb != nullptr) {
cb = BignumGenCallbackPointer(BN_GENCB_new());
Expand Down

0 comments on commit 8ca2956

Please sign in to comment.