mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 08:14:24 +02:00
wrap get_random_bytes_prngd() in ifdef
avoid unused static function warning
This commit is contained in:
parent
f93fdc4de1
commit
0767627cf6
@ -44,6 +44,7 @@
|
|||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|
||||||
|
#ifdef PRNGD_SOCKET
|
||||||
/*
|
/*
|
||||||
* EGD/PRNGD interface.
|
* EGD/PRNGD interface.
|
||||||
*
|
*
|
||||||
@ -144,6 +145,7 @@ done:
|
|||||||
close(fd);
|
close(fd);
|
||||||
return rval;
|
return rval;
|
||||||
}
|
}
|
||||||
|
#endif /* PRNGD_SOCKET */
|
||||||
|
|
||||||
int
|
int
|
||||||
seed_from_prngd(unsigned char *buf, size_t bytes)
|
seed_from_prngd(unsigned char *buf, size_t bytes)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user