[Python-ideas] Python's Source of Randomness and the random.py module Redux

random832 at fastmail.us random832 at fastmail.us
Fri Sep 11 14:42:55 CEST 2015

On Fri, Sep 11, 2015, at 00:54, Chris Angelico wrote:
> It would require a bit of an internals change; is it possible that
> code depends on random.seed and random.randint are bound methods of
> the same object? 

That's a ridiculous thing to depend on.

> To implement what you describe, they'd probably have
> to not be.

You could implement one class that calls either a SystemRandom instance
or an instance of another class depending on which mode it is in.

More information about the Python-ideas mailing list