mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
Remove string assignment
This commit is contained in:
parent
5a5edc7798
commit
08025c134d
@ -55,8 +55,7 @@ class Random
|
||||
{
|
||||
if (version_compare(PHP_VERSION, '7.0.0', '>=')) {
|
||||
try {
|
||||
$string = random_bytes($length);
|
||||
return $string;
|
||||
return random_bytes($length);
|
||||
}
|
||||
catch (\EngineException $e) {
|
||||
// If a sufficient source of randomness is unavailable, random_bytes() will emit a warning.
|
||||
|
Loading…
Reference in New Issue
Block a user