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

Tim Peters tim.one@comcast.net
2003年6月13日 13:21:11 -0400


[guido@python.org]
> 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.

AltStyle によって変換されたページ (->オリジナル) /