wrap get_random_bytes_prngd() in ifdef

avoid unused static function warning
This commit is contained in:
Damien Miller 2021-07-02 14:30:23 +10:00
parent f93fdc4de1
commit 0767627cf6
1 changed files with 2 additions and 0 deletions

View File

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