[libcxx-commits] [PATCH] D122522: [libcxx] random_device, specify optimal entropy properties for all OS's using arc4random()
Brad Smith via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 28 19:44:20 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6e2c6c9def39: [libcxx] random_device, specify optimal entropy properties for all OS's using… (authored by brad).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122522/new/
https://reviews.llvm.org/D122522
Files:
libcxx/src/random.cpp
Index: libcxx/src/random.cpp
===================================================================
--- libcxx/src/random.cpp
+++ libcxx/src/random.cpp
@@ -210,7 +210,7 @@
return std::numeric_limits<result_type>::digits;
return ent;
-#elif defined(__OpenBSD__) || defined(_LIBCPP_USING_FUCHSIA_CPRNG)
+#elif defined(_LIBCPP_USING_ARC4_RANDOM) || defined(_LIBCPP_USING_FUCHSIA_CPRNG)
return std::numeric_limits<result_type>::digits;
#else
return 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122522.418762.patch
Type: text/x-patch
Size: 462 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220329/0f47f3b3/attachment.bin>
More information about the libcxx-commits
mailing list