aboutsummaryrefslogtreecommitdiff
path: root/src/random.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-08-16 17:26:07 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-08-18 09:51:00 +0200
commitbea8e9e66ea98a957b8318cd49d91b598f38cbd3 (patch)
treec3890f824307145dea842650f41824da4ffe1b3e /src/random.cpp
parentdbf6bd6ea05f7d4836083747c6357c6fee907ab8 (diff)
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 b004bfa91e..4bcb8945f3 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();
}