Skip to content

Commit

Permalink
crypto: add missing rand.h include
Browse files Browse the repository at this point in the history
PR-URL: #38864
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Khaidi Chu <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
  • Loading branch information
codebytere committed Jun 3, 2021
1 parent 62493e9 commit 3b38757
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/crypto/crypto_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include <openssl/x509.h>
#include <openssl/pkcs12.h>
#include <openssl/rand.h>
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#endif // !OPENSSL_NO_ENGINE
Expand Down
1 change: 1 addition & 0 deletions src/crypto/crypto_random.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "v8.h"

#include <openssl/bn.h>
#include <openssl/rand.h>

namespace node {

Expand Down
2 changes: 2 additions & 0 deletions src/crypto/crypto_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#endif
#endif

#include <openssl/rand.h>

namespace node {

using v8::ArrayBuffer;
Expand Down

0 comments on commit 3b38757

Please sign in to comment.