Skip to content

Commit

Permalink
Update random.c
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-scott authored and laruence committed Dec 1, 2015
1 parent 1b27754 commit 00e3b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/standard/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ static int php_random_bytes(void *bytes, size_t size)
}
/* Does the file exist and is it a character device? */
if (fstat(fd, &st) != 0 ||
# ifdef S_IFNAM
!(S_IFNAM(st.st_mode) || S_ISCHR(st.st_mode))
# ifdef S_ISNAM
!(S_ISNAM(st.st_mode) || S_ISCHR(st.st_mode))
# else
!S_ISCHR(st.st_mode)
# endif
Expand Down

0 comments on commit 00e3b76

Please sign in to comment.