windows doesn't have /dev/random
This commit is contained in:
@@ -359,7 +359,7 @@ RAND_file_name(char *filename, size_t size)
|
|||||||
*
|
*
|
||||||
* So at least return the unix /dev/random if we have one
|
* So at least return the unix /dev/random if we have one
|
||||||
*/
|
*/
|
||||||
|
#ifndef _WIN32
|
||||||
if (e == NULL) {
|
if (e == NULL) {
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
@@ -367,6 +367,7 @@ RAND_file_name(char *filename, size_t size)
|
|||||||
if (fd >= 0)
|
if (fd >= 0)
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (e == NULL)
|
if (e == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user