In article <mailman.885.1381284610.18130.python-l...@python.org>, Chris Angelico <ros...@gmail.com> wrote:
> On Wed, Oct 9, 2013 at 12:38 PM, Roy Smith <r...@panix.com> wrote: > > If you're willing to accept a sub-optimal random number generator: > > > > # Python-2, sorry > > import os > > print list(set(open('/usr/share/dict/words')))[os.getpid():][:4] > > So that steps by your pid? That's going to drastically reduce the > entropy in the result, Well, I did say it was a sub-optimal random number generator :-) I've been experimenting with os.urandom() as an entropy source, but can't get the (source code) character count down far enough. -- https://mail.python.org/mailman/listinfo/python-list