Ver originalfunction generapwd($largo=8){ $caracteres = "123456789123456789abcdefghijklmnopqrstuvwxyz"; $contrasenia = ""; srand ((double) microtime() * 1000000); while ($largo){ $contrasenia .= substr( $caracteres, rand( 0, strlen( $caracteres )), 1); $largo--; } return($contrasenia);}