From 82c293959e74de4379387270ddaa360965b639b0 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Mon, 31 May 2021 12:23:07 +0200 Subject: [PATCH] crypto: add missing rand.h include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/38864 Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Khaidi Chu Reviewed-By: Richard Lau Reviewed-By: Darshan Sen --- src/crypto/crypto_context.cc | 1 + src/crypto/crypto_random.cc | 1 + src/crypto/crypto_util.cc | 2 ++ 3 files changed, 4 insertions(+) diff --git a/src/crypto/crypto_context.cc b/src/crypto/crypto_context.cc index 8feefde819ea8b..7eb17ee53475fb 100644 --- a/src/crypto/crypto_context.cc +++ b/src/crypto/crypto_context.cc @@ -13,6 +13,7 @@ #include #include +#include #ifndef OPENSSL_NO_ENGINE #include #endif // !OPENSSL_NO_ENGINE diff --git a/src/crypto/crypto_random.cc b/src/crypto/crypto_random.cc index b24f8f32136ffa..7cb4513f9ad0ea 100644 --- a/src/crypto/crypto_random.cc +++ b/src/crypto/crypto_random.cc @@ -8,6 +8,7 @@ #include "v8.h" #include +#include namespace node { diff --git a/src/crypto/crypto_util.cc b/src/crypto/crypto_util.cc index 47945389b4068d..bc4efe5f597263 100644 --- a/src/crypto/crypto_util.cc +++ b/src/crypto/crypto_util.cc @@ -20,6 +20,8 @@ #endif #endif +#include + namespace node { using v8::ArrayBuffer;