diff --git a/lib/random_bytes_dev_urandom.php b/lib/random_bytes_dev_urandom.php index 5a5b370..8bf7034 100644 --- a/lib/random_bytes_dev_urandom.php +++ b/lib/random_bytes_dev_urandom.php @@ -1,22 +1,22 @@ 0); /** * Is our result valid? */ - if (is_string($buf)) { + if ($buf !== false) { if (RandomCompat_strlen($buf) === $bytes) { /** * Return our random entropy buffer here: