From bea8e9e66ea98a957b8318cd49d91b598f38cbd3 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 16 Aug 2017 17:26:07 +0200 Subject: Document the preference of nullptr over NULL or (void*)0 --- src/random.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/random.cpp') 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(); } -- cgit v1.2.3