diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-09-19 22:17:23 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-09-19 22:17:23 +0000 |
commit | b17958b14d4e86fcc63251ddb1d59dc0eb230d2f (patch) | |
tree | d7ca3c4b96488b86f9bd3917f595e55521fd1bdd | |
parent | e9399cc4dd1b7e46a100a6c98442fb049c456ce0 (diff) |
We definitely want to use arc4random() on OpenBSD.
ok patrick@
-rw-r--r-- | lib/libcxx/include/__config | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcxx/include/__config b/lib/libcxx/include/__config index 728b00558a4..227fc4a355b 100644 --- a/lib/libcxx/include/__config +++ b/lib/libcxx/include/__config @@ -175,7 +175,7 @@ # endif #endif // __sun__ -#if defined(__CloudABI__) +#if defined(__CloudABI__) || defined(__OpenBSD__) // Certain architectures provide arc4random(). Prefer using // arc4random() over /dev/{u,}random to make it possible to obtain // random data even when using sandboxing mechanisms such as chroots, |