src/ssl_sock.c
static int ssl_initialize_random()
{
	unsigned char random;
	static int random_initialized = 0;

	if (!random_initialized && RAND_bytes(&random, 1) != 0)
		random_initialized = 1;

	return random_initialized;
}
/* Make sure openssl opens /dev/urandom before the chroot. The work is only
 * done once. Zero is returned if the operation fails. No error is returned
 * if the random is said as not implemented, because we expect that openssl
 * will use another method once needed.
 */
Make sure openssl opens /dev/urandom before the chroot. The work is only
done once. Zero is returned if the operation fails. No error is returned
if the random is said as not implemented, because we expect that openssl
will use another method once needed.
Make sure openssl opens / dev / urandom before the chroot . The work is only done once . Zero is returned if the operation fails . No error is returned if the random is said as not implemented because we expect that openssl will use another method once needed .
static int ssl_initialize_random()
{
	unsigned char random;
	static int random_initialized = 0;
	if (!random_initialized && RAND_bytes(&random, 1) != 0)
		random_initialized = 1;
	return random_initialized;
}
static int ssl_initialize_random ( ) { unsigned char random ; static int random_initialized = 0 ; if ( ! random_initialized && RAND_bytes ( & random , 1 ) != 0 ) random_initialized = 1 ; return random_initialized ; }
Make sure openssl opens /dev/urandom before the chroot.
Make sure openssl opens / dev / urandom before the chroot .