diff --git a/src/node.cc b/src/node.cc index 07a91f485502b8..787cbb5c289bc2 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1174,7 +1174,7 @@ InitializeOncePerProcessInternal(const std::vector& args, // Ensure CSPRNG is properly seeded. CHECK(crypto::CSPRNG(nullptr, 0).is_ok()); - +#endif // defined(OPENSSL_IS_BORINGSSL) V8::SetEntropySource([](unsigned char* buffer, size_t length) { // V8 falls back to very weak entropy when this function fails // and /dev/urandom isn't available. That wouldn't be so bad if @@ -1189,7 +1189,7 @@ InitializeOncePerProcessInternal(const std::vector& args, if (credentials::SafeGetenv("NODE_EXTRA_CA_CERTS", &extra_ca_certs)) crypto::UseExtraCaCerts(extra_ca_certs); } -#endif // HAVE_OPENSSL && !defined(OPENSSL_IS_BORINGSSL) +#endif // HAVE_OPENSSL } if (!(flags & ProcessInitializationFlags::kNoInitializeNodeV8Platform)) {