# define SAVED_IDS_WORK_WITH_SETEUID
#endif
-void
+static void
check_openssl_version(void)
{
if (SSLeay() != OPENSSL_VERSION_NUMBER)
#else /* !USE_PRNGD */
#ifdef RANDOM_POOL
/* Collect entropy from /dev/urandom or pipe */
-int
+static int
get_random_bytes(unsigned char *buf, int len)
{
int random_pool;
break;
case 1:
/* command input */
- bytes_read = read(p[0], buf, sizeof(buf));
+ do {
+ bytes_read = read(p[0], buf, sizeof(buf));
+ } while (bytes_read == -1 && errno == EINTR);
RAND_add(&bytes_read, sizeof(&bytes_read), 0.0);
if (bytes_read == -1) {
error_abort = 1;