Added return value check

The openssl_random_pseudo_bytes function will return false on failure.