mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
Switch from EngineException to Error
This commit is contained in:
parent
08025c134d
commit
bbbfc1795d
@ -57,7 +57,7 @@ class Random
|
||||
try {
|
||||
return random_bytes($length);
|
||||
}
|
||||
catch (\EngineException $e) {
|
||||
catch (\Error $e) {
|
||||
// If a sufficient source of randomness is unavailable, random_bytes() will emit a warning.
|
||||
// We don't actually need to do anything here. The string() method should just continue
|
||||
// as normal. Note, however, that if we don't have a sufficient source of randomness for
|
||||
|
Loading…
Reference in New Issue
Block a user