mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-09 15:20:58 +00:00
Switch from EngineException to Error
This commit is contained in:
parent
08025c134d
commit
bbbfc1795d
@ -57,7 +57,7 @@ class Random
|
|||||||
try {
|
try {
|
||||||
return random_bytes($length);
|
return random_bytes($length);
|
||||||
}
|
}
|
||||||
catch (\EngineException $e) {
|
catch (\Error $e) {
|
||||||
// If a sufficient source of randomness is unavailable, random_bytes() will emit a warning.
|
// 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
|
// 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
|
// as normal. Note, however, that if we don't have a sufficient source of randomness for
|
||||||
|
Loading…
Reference in New Issue
Block a user