[issue38767] Replace Mersenne Twister RNG with a PCG family algorithm

Raymond Hettinger report at bugs.python.org
Mon Nov 11 13:38:00 EST 2019


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

We had looked at this once before and the proposal was rejected (better to stick with the devil you know than than one that hasn't been extensively studied).

Also, there is some value to having a large state space, shuffle() and sample() consume a lot of entropy to assure that a selection from the entire population is possible.

At best, PCG would be an additional algorithm rather than a replacement -- it is already possible to subclass Random and substitute other generators (the docs link to an example for the complementary-multiply-with-carry generator).

----------
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list