get_random_token_string 함수 코드 재수정

This commit is contained in:
thisgun committed 2022-06-13 14:47:50 +09:00
1 parent d4f554e653
commit 4b12ea8260
1 file changed
+1 -4
+1 -4
View File
@@ -3951,10 +3951,7 @@ function get_random_token_string($length=6)
}
$characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
$characters_length = strlen($characters);
$output = '';
for ($i = 0; $i < $length; $i++)
$output .= $characters[rand(0, $characters_length - 1)];
$output = substr(str_shuffle($characters), 0, $length); // jihan001 님 제안코드로 수정
return bin2hex($output);
}