[libcxx] random_device, for OpenBSD specify optimal entropy properties
Reviewed By: ldionne
Differential Revision: https://reviews.llvm.org/D94571
GitOrigin-RevId: 4b6d7fdd2079aa793b96a628688e95a55669f70b
diff --git a/src/random.cpp b/src/random.cpp
index 7d0431e..29aa43b 100644
--- a/src/random.cpp
+++ b/src/random.cpp
@@ -189,6 +189,8 @@
return std::numeric_limits<result_type>::digits;
return ent;
+#elif defined(__OpenBSD__)
+ return std::numeric_limits<result_type>::digits;
#else
return 0;
#endif