Skip to content

Commit

Permalink
crypto: fix warning of ignoring return value
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Jan 8, 2025
1 parent dc5d0f9 commit 12e72d6
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 12e72d6

Please sign in to comment.