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

Georg Brandl g.brandl at gmx.net
Mon Sep 14 18:59:50 CEST 2015

On 09/10/2015 07:00 PM, Nick Coghlan wrote:

>> +0 for deprecating the seed-related functions and saying "the stdlib uses
>> was it uses as a RNG and you have to live with it if you don't make your own
>> choice" and switching to a crypto-secure RNG.
> However, this I'm +1 on. People *do* use the module level APIs
> inappropriately, and we can get them to a much safer place, while
> nudging folks that genuinely need deterministic randomness towards an
> alternative API.

I agree.  Deprecating (and eventually removing) the 4 seed-related functions
seems like the least intrusive, but still effective, solution to this issue.


More information about the Python-ideas mailing list