mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-03 20:38:29 +00:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
e72c88cf16
@ -98,7 +98,7 @@ class Random
|
|||||||
}
|
}
|
||||||
if ($fp !== true && $fp !== false) { // surprisingly faster than !is_bool() or is_resource()
|
if ($fp !== true && $fp !== false) { // surprisingly faster than !is_bool() or is_resource()
|
||||||
$temp = fread($fp, $length);
|
$temp = fread($fp, $length);
|
||||||
if (strlen($temp) != $length) {
|
if (strlen($temp) == $length) {
|
||||||
return $temp;
|
return $temp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user