Skip to content

Commit 3b38757

Browse files
committed
crypto: add missing rand.h include
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]>
1 parent 62493e9 commit 3b38757

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/crypto/crypto_context.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
#include <openssl/x509.h>
1515
#include <openssl/pkcs12.h>
16+
#include <openssl/rand.h>
1617
#ifndef OPENSSL_NO_ENGINE
1718
#include <openssl/engine.h>
1819
#endif // !OPENSSL_NO_ENGINE

src/crypto/crypto_random.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "v8.h"
99

1010
#include <openssl/bn.h>
11+
#include <openssl/rand.h>
1112

1213
namespace node {
1314

src/crypto/crypto_util.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#endif
2121
#endif
2222

23+
#include <openssl/rand.h>
24+
2325
namespace node {
2426

2527
using v8::ArrayBuffer;

0 commit comments

Comments
 (0)