aboutsummaryrefslogtreecommitdiff
path: root/src/random.cpp
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-09-25 11:45:17 +0000
committerMacroFake <falke.marco@gmail.com>2022-09-25 11:45:41 +0000
commitec13810a007669518a98a464cd540bc37ec7e306 (patch)
treea7eb72deb82b05336fbe27f0151f6f18c58cbf4e /src/random.cpp
parent0cfbb171bd6f61a4edba913e281553b9bdf08d4a (diff)
parent553ff452c0e95a9647d35f10f67e45f24bd2d9b7 (diff)
Merge bitcoin/bitcoin#26159: build: Remove `stdlib.h` from header checks
553ff452c0e95a9647d35f10f67e45f24bd2d9b7 build: remove stdlib.h from header checks (fanquake) a63d4cb26a2830b297288aa6acf5b69108353334 refactor: use <cstdlib> over stdlib.h (fanquake) Pull request description: We already use a mix of `<cstlib>` and `stdlib.h` unconditionally throughout the codebase. Us checking this header also duplicates work already done by autotools. Currently stdlib.h is checked for 3 times during a ./configure run, after this change, at least it's only twice. Similar to #26150. ACKs for top commit: kristapsk: ACK 553ff452c0e95a9647d35f10f67e45f24bd2d9b7 TheCharlatan: ACK 553ff452c0e95a9647d35f10f67e45f24bd2d9b7 Tree-SHA512: 0a43d39d3df180a1614dbd3a1ee1531b0969ffe4a0c09dfe9d2f3f0ec16196b5fd7523309f6722936a8c8b20908508724e1903e939dd81c3b4538d85d0f42953
Diffstat (limited to 'src/random.cpp')
-rw-r--r--src/random.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/random.cpp b/src/random.cpp
index f92e679a00..eab54630b1 100644
--- a/src/random.cpp
+++ b/src/random.cpp
@@ -21,7 +21,7 @@
#include <util/time.h> // for GetTimeMicros()
#include <cmath>
-#include <stdlib.h>
+#include <cstdlib>
#include <thread>
#ifndef WIN32