[Python-Dev] Sporadic test failures in Lib/test/test_mimetools.py

Guido van Rossum guido@python.org
Fri, 13 Jun 2003 13:48:48 -0400


> > A simple fix would be to change the seed to use 31 instead of 15 bits;
> > we now have a random generator capable of that.  Perhaps we should go
> > ahead and use even more bits...  Aren't we using mersenne Twister by
> > default?
> 
> In 2.3, right.  Not 2.2.  If we want a fix that's obviously collision-free
> and can be backported too, a threadsafe counter seems simplest.

Sure, but that's more work.  Any volunteers?  If nobody volunteers,
I'll increase the counter range; it's better than nothing.

--Guido van Rossum (home page: http://www.python.org/~guido/)