mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Document the preference of nullptr over NULL or (void*)0
This commit is contained in:
parent
dbf6bd6ea0
commit
bea8e9e66e
4 changed files with 8 additions and 7 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue