Skip to content

Commit

Permalink
get_random_token_string 함수 코드 재수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Jun 13, 2022
1 parent d4f554e commit 4b12ea8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/common.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4b12ea8

Please sign in to comment.