Bug #1272 » random.patch
| 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);
|
||
|
}
|
||