mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-23 20:15:19 -07:00
Revert "Disable getentropy() on Apple devices"
This reverts commit 9710a33ba1
.
This commit is contained in:
parent
eef918da2f
commit
6a6a5cc79e
@ -825,10 +825,6 @@ unsigned char buf;
|
|||||||
# include <sys/random.h>
|
# include <sys/random.h>
|
||||||
#endif
|
#endif
|
||||||
]], [[
|
]], [[
|
||||||
#ifdef __APPLE__
|
|
||||||
# error getentropy() is currently disabled on Apple operating systems
|
|
||||||
#endif
|
|
||||||
|
|
||||||
unsigned char buf;
|
unsigned char buf;
|
||||||
(void) getentropy((void *) &buf, 1U);
|
(void) getentropy((void *) &buf, 1U);
|
||||||
]])],
|
]])],
|
||||||
|
Loading…
Reference in New Issue
Block a user