[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
Mon Jan 25 18:03:07 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG4b6d7fdd2079: [libcxx] random_device, for OpenBSD specify optimal entropy properties (authored by brad).

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.319181.patch
Type: text/x-patch
Size: 348 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210126/fcc7aed3/attachment-0001.bin>


More information about the libcxx-commits mailing list