diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-08-18 15:23:54 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-08-18 15:24:07 +0200 |
| commit | 9e00a625b43c86a1a25c7d8a6d0b06bd4db5904a (patch) | |
| tree | f4a6926069e5135154f150217d042a4739e61a38 /src/random.cpp | |
| parent | Merge #11080: doc: Update build-openbsd for 6.1 (diff) | |
| parent | Document the preference of nullptr over NULL or (void*)0 (diff) | |
| download | discoin-9e00a625b43c86a1a25c7d8a6d0b06bd4db5904a.tar.xz discoin-9e00a625b43c86a1a25c7d8a6d0b06bd4db5904a.zip | |
Merge #11066: Document the preference of nullptr over NULL or (void*)0
bea8e9e Document the preference of nullptr over NULL or (void*)0 (practicalswift)
Pull request description:
Document the preference of `nullptr` over `NULL` or `(void*)0`.
After this commit:
```
$ git grep "[^A-Za-z_]NULL[^A-Za-z_]" | grep -vE '(leveldb|univalue|secp256k1|torcontrol|NULL certificates|ctaes|release-notes|patches|configure.ac|developer-notes)'
$
```
Some context:
* `NULL → nullptr` was handled in the recently merged PR #10483
* `0 → nullptr` was handled in the recently merged PR #10645
Tree-SHA512: f863096aa4eb21705910f89713ca9cc0d83c6df2147e3d3530c3e1589b96f6c68de8755dcf37d8ce99ebda3cfb69805e00eab13bf65424aaf16170e9dda3958a
Diffstat (limited to 'src/random.cpp')
| -rw-r--r-- | src/random.cpp | 2 |
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(); } |