mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-30 12:50:38 +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', '>=')) {
|
if (version_compare(PHP_VERSION, '7.0.0', '>=')) {
|
||||||
try {
|
try {
|
||||||
$string = random_bytes($length);
|
return random_bytes($length);
|
||||||
return $string;
|
|
||||||
}
|
}
|
||||||
catch (\EngineException $e) {
|
catch (\EngineException $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.
|
||||||
|
Loading…
Reference in New Issue
Block a user