in native/src/ssl.c [402:420]
static int ssl_rand_save_file(const char *file)
{
char buffer[APR_PATH_MAX];
#ifndef OPENSSL_NO_EGD
int n;
#endif
if (file == NULL)
file = RAND_file_name(buffer, sizeof(buffer));
#ifndef OPENSSL_NO_EGD
else if ((n = RAND_egd(file)) > 0) {
return 0;
}
#endif
if (file == NULL || !RAND_write_file(file))
return 0;
else
return 1;
}