Skip to content

Commit d33471d

Browse files
committed
Typos
1 parent e632741 commit d33471d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/string4.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,15 @@ static function RandomPassword($length = 10){
153153
$numeric = 0;
154154
}
155155
if($numeric==1){
156-
$piece_lenght = rand($numeric_piece_min_length,$numeric_piece_max_length);
157-
while($piece_lenght>0){
156+
$piece_length = rand($numeric_piece_min_length,$numeric_piece_max_length);
157+
while($piece_length>0){
158158
$password .= rand(2,9);
159-
$piece_lenght--;
159+
$piece_length--;
160160
}
161161
}else{
162162
$uppercase = rand(0,1);
163-
$piece_lenght = rand($piece_min_length,$piece_max_length);
164-
while($piece_lenght>0){
163+
$piece_length = rand($piece_min_length,$piece_max_length);
164+
while($piece_length>0){
165165
if($last_s1==0){
166166
if($uppercase==1){
167167
$password .= strtoupper($s1[rand(0,strlen($s1)-1)]);
@@ -177,7 +177,7 @@ static function RandomPassword($length = 10){
177177
}
178178
$last_s1 = 0;
179179
}
180-
$piece_lenght--;
180+
$piece_length--;
181181
}
182182
}
183183
}

0 commit comments

Comments
 (0)