#NEWLINE# def random_password_generator( ) : #NEWLINE# #INDENT# ' Generates a random six character password with letters and digits. ' #NEWLINE# characters = ( string . letters + string . digits ) #NEWLINE# pwd_size = constants . PASSWORD_SIZE #NEWLINE# return '' . join ( ( random . choice ( characters ) for x in range ( pwd_size ) ) )