Remove string assignment

This commit is contained in:
Cameron Eagans 2015-09-01 14:53:45 -04:00
parent 5a5edc7798
commit 08025c134d

View File

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