Document the preference of nullptr over NULL or (void*)0

This commit is contained in:
practicalswift
2017-08-16 17:26:07 +02:00
parent dbf6bd6ea0
commit bea8e9e66e
4 changed files with 8 additions and 7 deletions

View File

@@ -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();
}