On Jan 18, 12:20 am, "Martin v. Löwis" <mar... at v.loewis.de> wrote: > >>> s = str(hexlify(urandom(8)))[2:18] > >> And your question is? > > > No question just solution to get rit of b'' :) > > Ah. hexlify(urandom(8)).decode('ascii') Ok that one looks better then mine :)