Index: random.c =================================================================== --- random.c (revision 22907) +++ random.c (working copy) @@ -281,7 +281,6 @@ struct timeval tv; #ifdef S_ISCHR int fd; - struct stat statbuf; #endif memset(seed, 0, DEFAULT_SEED_LEN); @@ -298,6 +297,7 @@ |O_NOFOLLOW #endif )) >= 0) { + struct stat statbuf; if (fstat(fd, &statbuf) == 0 && S_ISCHR(statbuf.st_mode)) { (void)read(fd, seed, DEFAULT_SEED_LEN); }