mirror of https://github.com/nodejs/node.git
crypto: fix warning of ignoring return value
PR-URL: https://github.com/nodejs/node/pull/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>pull/56562/head
parent
0576deb4e5
commit
8ca2956235
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue