summaryrefslogtreecommitdiffstats
path: root/entropy.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-09-27 19:50:25 +1000
committerDarren Tucker <dtucker@zip.com.au>2005-09-27 19:50:25 +1000
commitf1377bdeed3ca7268c6a5d3fa171a09df7be9064 (patch)
tree66a17d7705e7fccfd7398fb104e0fb9ee044935c /entropy.c
parentd3eff2bfa56dbb37dbb2ea25cf4804193411ba4f (diff)
- (dtucker) [entropy.c] Remove unnecessary tests for getuid and geteuid
calls, since they can't possibly fail. ok djm@
Diffstat (limited to 'entropy.c')
-rw-r--r--entropy.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/entropy.c b/entropy.c
index 410bbb92..7f4a3078 100644
--- a/entropy.c
+++ b/entropy.c
@@ -45,7 +45,7 @@
* XXX: we should tell the child how many bytes we need.
*/
-RCSID("$Id: entropy.c,v 1.49 2005/07/17 07:26:44 djm Exp $");
+RCSID("$Id: entropy.c,v 1.50 2005/09/27 09:50:25 dtucker Exp $");
#ifndef OPENSSL_PRNG_ONLY
#define RANDOM_SEED_SIZE 48
@@ -145,10 +145,8 @@ init_rng(void)
"have %lx", OPENSSL_VERSION_NUMBER, SSLeay());
#ifndef OPENSSL_PRNG_ONLY
- if ((original_uid = getuid()) == -1)
- fatal("getuid: %s", strerror(errno));
- if ((original_euid = geteuid()) == -1)
- fatal("geteuid: %s", strerror(errno));
+ original_uid = getuid();
+ original_euid = geteuid();
#endif
}