[Python-ideas] PEP 504: Using the system RNG by default

Random832 random832 at fastmail.com
Tue Sep 15 20:34:04 CEST 2015

On Tue, Sep 15, 2015, at 14:25, Random832 wrote:

I made an editing mistake that may have made it hard to follow my post.
This paragraph:

> The output of random.random today when it's not seeded / seeded with
> None isn't _really_ deterministic - you can't reproduce it, after all,
> without modifying the code (though in principle you could do
> seed(None)/getstate the first time and then setstate on subsequent
> executions - it may be worth supporting this use case?) - so changing it
> isn't likely to affect anyone - anyone needing MT is likely to also be
> using the seed functions.

Should have been _after_ this one:

> What do you think of having calls to seed/setstate(/getstate?)
> implicitly switch (by whatever mechanism) to MT? This could be done
> without a deprecation warning, and would allow existing code that relies
> on reproducible values to continue working without modification?

More information about the Python-ideas mailing list