Update country.kr.php

This commit is contained in:
Namhyeon Go 2019-02-26 16:12:45 +09:00 committed by GitHub
parent 8fc09353d3
commit c035a31847
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,9 +28,7 @@ if(!check_function_exists("get_kr_get_lastname")) {
$words = read_storage_file_by_line("kr.lastname.txt", array(
"storage_type" => "country",
)));
$prefix_names = explode(",", $words);
shuffle($prefix_names);
return $prefix_names[0];
return $words[get_random_index($words)];
}
}
}
@ -41,9 +39,7 @@ if(!check_function_exists("get_kr_get_firstname")) {
$words = read_storage_file_by_line("kr.firstname.txt", array(
"storage_type" => "country",
)));
$prefix_names = explode(",", $words);
shuffle($prefix_names);
return $prefix_names[0];
return $words[get_random_index($words)];
}
}
}