In article <[EMAIL PROTECTED]>, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> from random import randint > ''.join(chr(randint(0, 255)) for i in xrange(len(input))) > > > of course. How else should you get random bytes? :) That a UUOL (Useless Usage Of Len; by analogy to UUOC). This works just as well: ''.join(chr(randint(0, 255)) for i in input) -- http://mail.python.org/mailman/listinfo/python-list