File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments