diff options
Diffstat (limited to 'lib/hcrypto/rand.c')
| -rw-r--r-- | lib/hcrypto/rand.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/hcrypto/rand.c b/lib/hcrypto/rand.c index 98432e75ed89..893d5c6ac1ae 100644 --- a/lib/hcrypto/rand.c +++ b/lib/hcrypto/rand.c @@ -350,13 +350,11 @@ RAND_file_name(char *filename, size_t size) const char *e = NULL; int pathp = 0, ret; - if (!issuid()) { - e = getenv("RANDFILE"); - if (e == NULL) - e = getenv("HOME"); - if (e) - pathp = 1; - } + e = secure_getenv("RANDFILE"); + if (e == NULL) + e = secure_getenv("HOME"); + if (e) + pathp = 1; #ifndef _WIN32 /* |
