os: validate fd when opening /dev/urandom
os: validate fd when opening /dev/urandom

Check that it points to a character device.

joegen/sjs,saghul/sjs,joegen/sjs,saghul/sjs,joegen/sjs,saghul/sjs,saghul/sjs