Project

General

Profile

Bug #1272 » random.patch

cfis (Charlie Savage), 03/12/2009 12:56 PM

View differences:

random.c (working copy)
struct timeval tv;
#ifdef S_ISCHR
int fd;
struct stat statbuf;
#endif
memset(seed, 0, DEFAULT_SEED_LEN);
......
|O_NOFOLLOW
#endif
)) >= 0) {
struct stat statbuf;
if (fstat(fd, &statbuf) == 0 && S_ISCHR(statbuf.st_mode)) {
(void)read(fd, seed, DEFAULT_SEED_LEN);
}
(4-4/6)