def build_slug():
 wordlist = open(get_resource_path('wordlist.txt')).read().split('\n')
 wordlist.remove('')
 r = SystemRandom()
 return '-'.join((r.choice(wordlist) for x in range(2)))

def build_slug ( ) : wordlist = open ( get_resource_path ( 'wordlist.txt' ) ) . read ( ) . split ( '\n' ) wordlist . remove ( '' ) r = SystemRandom ( ) return '-' . join ( ( r . choice ( wordlist ) for x in range ( 2 ) ) )
returns a random string made from two words from the wordlist .