From d02418be27e5cddaa4785149dd4957e798ee9aa9 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Sun, 21 Mar 2010 16:44:30 -0700 Subject: [PATCH] windows doesn't have /dev/random --- lib/hcrypto/rand.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/hcrypto/rand.c b/lib/hcrypto/rand.c index 74ba8dbcf..d360ffcab 100644 --- a/lib/hcrypto/rand.c +++ b/lib/hcrypto/rand.c @@ -359,7 +359,7 @@ RAND_file_name(char *filename, size_t size) * * So at least return the unix /dev/random if we have one */ - +#ifndef _WIN32 if (e == NULL) { int fd; @@ -367,6 +367,7 @@ RAND_file_name(char *filename, size_t size) if (fd >= 0) close(fd); } +#endif if (e == NULL) return NULL;