diff options
Diffstat (limited to 'entropy.c')
-rw-r--r-- | entropy.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -45,7 +45,7 @@ | |||
45 | * XXX: we should tell the child how many bytes we need. | 45 | * XXX: we should tell the child how many bytes we need. |
46 | */ | 46 | */ |
47 | 47 | ||
48 | RCSID("$Id: entropy.c,v 1.49 2005/07/17 07:26:44 djm Exp $"); | 48 | RCSID("$Id: entropy.c,v 1.50 2005/09/27 09:50:25 dtucker Exp $"); |
49 | 49 | ||
50 | #ifndef OPENSSL_PRNG_ONLY | 50 | #ifndef OPENSSL_PRNG_ONLY |
51 | #define RANDOM_SEED_SIZE 48 | 51 | #define RANDOM_SEED_SIZE 48 |
@@ -145,10 +145,8 @@ init_rng(void) | |||
145 | "have %lx", OPENSSL_VERSION_NUMBER, SSLeay()); | 145 | "have %lx", OPENSSL_VERSION_NUMBER, SSLeay()); |
146 | 146 | ||
147 | #ifndef OPENSSL_PRNG_ONLY | 147 | #ifndef OPENSSL_PRNG_ONLY |
148 | if ((original_uid = getuid()) == -1) | 148 | original_uid = getuid(); |
149 | fatal("getuid: %s", strerror(errno)); | 149 | original_euid = geteuid(); |
150 | if ((original_euid = geteuid()) == -1) | ||
151 | fatal("geteuid: %s", strerror(errno)); | ||
152 | #endif | 150 | #endif |
153 | } | 151 | } |
154 | 152 | ||