mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-30 12:50:38 +00:00
Coding standards fix
This commit is contained in:
parent
bbbfc1795d
commit
8a5dc21835
@ -56,8 +56,7 @@ class Random
|
|||||||
if (version_compare(PHP_VERSION, '7.0.0', '>=')) {
|
if (version_compare(PHP_VERSION, '7.0.0', '>=')) {
|
||||||
try {
|
try {
|
||||||
return random_bytes($length);
|
return random_bytes($length);
|
||||||
}
|
} catch (\Error $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