[issue32276] there is no way to make tempfile reproducible (i.e. seed the used RNG)

Julien Palard report at bugs.python.org
Sat Dec 16 05:44:10 EST 2017


Julien Palard <julien+python at palard.fr> added the comment:

I concur with Raymond and Serhiy here, and monkeypatching tmpfile should not be that hard, maybe patching `tempfile._Random` with `partial(random.Random, seed)` if done soon enough?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32276>
_______________________________________


More information about the Python-bugs-list mailing list