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 <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Khaidi Chu <i@2333.moe>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
codebytere authored and targos committed Jun 11, 2021
1 parent db4b192 commit 82c2939
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
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
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
Expand Up @@ -20,6 +20,8 @@
#endif
#endif

#include <openssl/rand.h>

namespace node {

using v8::ArrayBuffer;
Expand Down

0 comments on commit 82c2939

Please sign in to comment.