[libcxx-commits] [libcxx] [libc++] Use glibc random APIs for std::random_device on Linux (PR #222567)
QIU Chaofan via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Oct 23 15:51:30 PDT 2026
================
@@ -85,6 +85,14 @@
# if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
defined(__DragonFly__) || defined(__BIONIC__)
# define _LIBCPP_USING_ARC4_RANDOM
+# elif defined(__linux__) && defined(_LIBCPP_GLIBC_PREREQ)
----------------
ecnelises wrote:
Thanks!
https://github.com/llvm/llvm-project/pull/222567
More information about the libcxx-commits
mailing list