diff options
author | 2016-09-19 22:17:22 +0000 | |
---|---|---|
committer | 2016-09-19 22:17:22 +0000 | |
commit | 8a42e97d9a03f946332914ea3e3b45f35fc3755c (patch) | |
tree | 3bb0edd2a5249ad7af1a68f996317c6bb9344009 /lib/libcxx | |
parent | ansify function definitions (diff) | |
download | wireguard-openbsd-8a42e97d9a03f946332914ea3e3b45f35fc3755c.tar.xz wireguard-openbsd-8a42e97d9a03f946332914ea3e3b45f35fc3755c.zip |
We definitely want to use arc4random() on OpenBSD.
ok patrick@
Diffstat (limited to 'lib/libcxx')
-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, |