5 RAND_egd - Query entropy gathering daemon
9 #include <openssl/rand.h>
11 int RAND_egd(const char *path);
15 RAND_egd() queries the entropy gathering daemon EGD on socket B<path>.
17 EGD is available from http://www.lothar.com/tech/crypto/ (C<perl
18 Makefile.PL; make; make install> to install). It is run as B<egd>
19 I<path>, where I<path> is an absolute path designating a socket. When
20 RAND_egd() is called with that path as an argument, it tries to read
21 random bytes that EGD has collected.
25 RAND_egd() returns the number of bytes read from the daemon on
26 success, and -1 if the connection failed or the daemon did not return
27 enough data to fully seed the PRNG.
31 L<rand(3)|rand(3)>, L<RAND_add(3)|RAND_add(3)>, L<RAND_cleanup(3)|RAND_cleanup(3)>
35 RAND_egd() is available since OpenSSL 0.9.5.