Fix ifdefs around get_random_bytes_prngd.

get_random_bytes_prngd() is used if either of PRNGD_PORT or PRNGD_SOCKET
are defined, so adjust ifdef accordingly.
This commit is contained in:
Darren Tucker 2021-07-02 15:20:32 +10:00
parent 0767627cf6
commit f841fc9c8c

View File

@ -44,7 +44,7 @@
#include "misc.h"
#include "log.h"
#ifdef PRNGD_SOCKET
#if defined(PRNGD_PORT) || defined(PRNGD_SOCKET)
/*
* EGD/PRNGD interface.
*
@ -145,7 +145,7 @@ done:
close(fd);
return rval;
}
#endif /* PRNGD_SOCKET */
#endif /* PRNGD_PORT || PRNGD_SOCKET */
int
seed_from_prngd(unsigned char *buf, size_t bytes)