[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
Thu Jan 21 16:57:48 PST 2021


brad updated this revision to Diff 318359.
brad added a comment.

Rebased.


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<unsigned int>::digits;
 #else
   return 0;
 #endif


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94571.318359.patch
Type: text/x-patch
Size: 349 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210122/8bf62b9f/attachment.bin>


More information about the libcxx-commits mailing list