Fix test for `/dev/random' so that it doesn't close `stdin' if it fails!