Improved installation command, reducing duplication and moving serialization logic to specific model

This commit is contained in:
Alejandro Celaya
2017-07-03 20:46:35 +02:00
parent f9c56d7cb1
commit e7f7cbcaac
7 changed files with 546 additions and 386 deletions

View File

@@ -9,7 +9,7 @@ trait StringUtilsTrait
$charactersLength = strlen($characters);
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[rand(0, $charactersLength - 1)];
$randomString .= $characters[mt_rand(0, $charactersLength - 1)];
}
return $randomString;