> > Thread-safety has nothing to do with preserving entropy or guarding
> > against attack.  All of the entropy in an MT sequence is contained in
> > the seed (upto 624 bytes) and that entropy is preserved through all
> > subsequent calls.
>
> I think the concern is that there can be a thread switch after some
> intermediate result is computed but before the state is updated.

The concern expressed by the OP was "preserving entropy or guarding
against attack".

>  That
> would mean two threads can get random numbers that are identical or
> anyway correlated.  Whether that can happen with Python's MT, I don't
> know.

It can't.  That is what the docs mean when they say that MT is
thread-safe.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to