def get_related_rand_names(prefixes, max_length=None):
 if max_length:
  length = (max_length - max((len(p) for p in prefixes)))
  if (length <= 0):
   raise ValueError(_("'max_length' must be longer than all prefixes"))
 else:
  length = 8
 rndchrs = helpers.get_random_string(length)
 return [(p + rndchrs) for p in prefixes]

def get_related_rand_names ( prefixes , max_length = None ) : if max_length : length = ( max_length - max ( ( len ( p ) for p in prefixes ) ) ) if ( length <= 0 ) : raise ValueError ( _ ( "'max_length' must be longer than all prefixes" ) ) else : length = 8 rndchrs = helpers . get_random_string ( length ) return [ ( p + rndchrs ) for p in prefixes ]
returns a list of the prefixes with the same random characters appended .