Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function crea_password($len) {
- $chars = "abcdefghijkmnopqrstuvwxyz023456789";
- srand((double)microtime()*1000000);
- $i = 0;
- $pass = '' ;
- while ($i < $len) {
- $num = rand() % 33;
- $tmp = substr($chars, $num, 1);
- $pass = $pass . $tmp;
- $i++;
- }
- return $pass;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement