[libcxx-commits] [PATCH] D94953: [libc++] Use ioctl when available to get random_device entropy.

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 19 11:48:20 PST 2021


ldionne added inline comments.


================
Comment at: libcxx/src/random.cpp:33
 #include <unistd.h>
+#if __has_include(<unistd.h>) && __has_include(<linux/random.h>)
+#include <sys/ioctl.h>
----------------
Should this be `__has_include(<sys/ioctl.h>)` instead?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94953/new/

https://reviews.llvm.org/D94953



More information about the libcxx-commits mailing list