diff --git a/libcxx/src/random.cpp b/libcxx/src/random.cpp --- a/libcxx/src/random.cpp +++ b/libcxx/src/random.cpp @@ -33,6 +33,9 @@ #include #endif +#ifdef __OpenBSD__ +#include +#endif _LIBCPP_BEGIN_NAMESPACE_STD @@ -172,7 +175,11 @@ double random_device::entropy() const _NOEXCEPT { +#ifdef __OpenBSD__ + return std::numeric_limits::digits; +#else return 0; +#endif } _LIBCPP_END_NAMESPACE_STD