Merge branch '1.0' into 2.0

This commit is contained in:
terrafrost 2020-04-03 07:34:08 -05:00
commit e72c88cf16

View File

@ -98,7 +98,7 @@ class Random
}
if ($fp !== true && $fp !== false) { // surprisingly faster than !is_bool() or is_resource()
$temp = fread($fp, $length);
if (strlen($temp) != $length) {
if (strlen($temp) == $length) {
return $temp;
}
}