Added getentropy() support.

Prodded by David Carlier.
This commit is contained in:
Sergey Kandaurov
2018-07-16 13:30:11 +03:00
parent bf1cb8f399
commit 7c5a710c55
3 changed files with 53 additions and 0 deletions

View File

@@ -234,6 +234,8 @@
#include <sys/random.h> /* getrandom(). */
#elif (NXT_HAVE_LINUX_SYS_GETRANDOM)
#include <linux/random.h> /* SYS_getrandom. */
#elif (NXT_HAVE_GETENTROPY_SYS_RANDOM)
#include <sys/random.h> /* getentropy(). */
#endif