Switch from EngineException to Error

This commit is contained in:
Cameron Eagans 2015-09-01 14:55:44 -04:00
parent 08025c134d
commit bbbfc1795d

View File

@ -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