> Here is a minor diff to do a little more strict checking on the device > id for urandom. It would be a shame if someone replaced a genuine > urandom with a /dev/null or some other predictable device. > > if a file is not special st_rdev will be 0 so S_ISCHR isn't needed anymore.
So you are trying to protect against your machine being totally damaged already. It makes no sense at all. Those major and minor numbers do not make sense at all.