5 char ICAO support #1052 (#1198)

This commit is contained in:
Nabeel S
2021-05-21 10:52:47 -04:00
committed by GitHub
parent ede5b74383
commit d3ec0f4de3
4 changed files with 45 additions and 4 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ if (!function_exists('createFactoryICAO')) {
$characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
$max = strlen($characters) - 1;
$string = '';
for ($i = 0; $i < 4; $i++) {
for ($i = 0; $i < 5; $i++) {
try {
$string .= $characters[random_int(0, $max)];
} catch (Exception $e) {