Skip to content

Commit

Permalink
[Order] fix code-generator length
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer committed Feb 23, 2019
1 parent f1407d5 commit ee49c62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected static function generateCode($letters, $length)
$i = 0;
$code = '';

while ($i <= $length) {
while ($i < $length) {
$num = rand() % 33;
$tmp = substr($letters, $num, 1);
$code = $code . $tmp;
Expand Down

0 comments on commit ee49c62

Please sign in to comment.