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', '>=')) { 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.