Disable getentropy() on Apple devices

This commit is contained in:
Frank Denis
2019-05-30 21:56:22 +02:00
parent 922e91a7bf
commit 9710a33ba1
+4
View File
@@ -825,6 +825,10 @@ unsigned char buf;
# include <sys/random.h>
#endif
]], [[
#ifdef __APPLE__
# error getentropy() is currently disabled on Apple operating systems
#endif
unsigned char buf;
(void) getentropy((void *) &buf, 1U);
]])],