Fixed the return code of RAND_query_egd_bytes when connect fails.