mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Disable getentropy() on Apple devices
This commit is contained in:
@@ -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);
|
||||
]])],
|
||||
|
||||
Reference in New Issue
Block a user