[PATCH] D36399: [sanitizers] Add a blocking boolean to GetRandom prototype
Aleksey Shlyapnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 8 09:38:58 PDT 2017
alekseyshl added inline comments.
================
Comment at: lib/sanitizer_common/sanitizer_linux.cc:1685
+# define GRND_NONBLOCK 1
+# endif
static atomic_uint8_t skip_getrandom_syscall;
----------------
Can you move those defines to the top of the file and define SANITIZER_USE_GETRANDOM? Then here you can do
if (SANITIZER_USE_GETRANDOM) {
...
}
https://reviews.llvm.org/D36399
More information about the llvm-commits
mailing list