aboutsummaryrefslogtreecommitdiff
path: root/src/random.cpp
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2017-08-16 17:26:07 +0200
committerpracticalswift <[email protected]>2017-08-18 09:51:00 +0200
commitbea8e9e66ea98a957b8318cd49d91b598f38cbd3 (patch)
treec3890f824307145dea842650f41824da4ffe1b3e /src/random.cpp
parentMerge #11071: Use static_assert(…, …) (C++11) instead of assert(…) wher... (diff)
downloaddiscoin-bea8e9e66ea98a957b8318cd49d91b598f38cbd3.tar.xz
discoin-bea8e9e66ea98a957b8318cd49d91b598f38cbd3.zip
Document the preference of nullptr over NULL or (void*)0
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 b004bfa91..4bcb8945f 100644
--- a/src/random.cpp
+++ b/src/random.cpp
@@ -242,7 +242,7 @@ void GetOSRand(unsigned char *ent32)
}
#elif defined(HAVE_GETENTROPY_RAND) && defined(MAC_OSX)
// We need a fallback for OSX < 10.12
- if (&getentropy != NULL) {
+ if (&getentropy != nullptr) {
if (getentropy(ent32, NUM_OS_RANDOM_BYTES) != 0) {
RandFailure();
}