[libcxx-commits] [PATCH] D94571: [libcxx] random_device, for OpenBSD specify optimal entropy properties
Brad Smith via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jan 23 22:17:39 PST 2021
brad updated this revision to Diff 318807.
brad added a comment.
Updated.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94571/new/
https://reviews.llvm.org/D94571
Files:
libcxx/src/random.cpp
Index: libcxx/src/random.cpp
===================================================================
--- libcxx/src/random.cpp
+++ libcxx/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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94571.318807.patch
Type: text/x-patch
Size: 348 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210124/77dce37f/attachment.bin>
More information about the libcxx-commits
mailing list