This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients gurnec, mark.dickinson, rhettinger, serhiy.storchaka, skip.montanaro
Date 2015-04-21.03:25:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429586722.35.0.157108241574.issue23974@psf.upfronthosting.co.za>
In-reply-to
Content
> we *still* have no documented guarantees of reproducibility,
> so maybe it's safe to go ahead and change this.  Raymond?

It is documented here:  https://docs.python.org/3/library/random.html#notes-on-reproducibility

The idea that is that algorithms (and the generated sequences) may change in between minor releases, but not in micro releases.  And random() itself if more restricted (guaranteed to be the same across minor releases as well).  The policy was new in Python 3.  It was a liberalization of the implied policy in Python 2 that we didn't change the sequences at all (except for flat-out brokenness).

Accordingly, the #9025 debiasing was intentionally not backported so we won't break reproducibility and adversely affect performance of existing code.

We could add a note as Mark suggests, but please keep it terse and affirmatively worded (perhaps something "See also:  Recipe 31xx for a way to eliminate rounding biases in randrange()".  The docs are not well served by being littered with Danger-signs and security warnings.
History
Date User Action Args
2015-04-21 03:25:22rhettingersetrecipients: + rhettinger, skip.montanaro, mark.dickinson, serhiy.storchaka, gurnec
2015-04-21 03:25:22rhettingersetmessageid: <1429586722.35.0.157108241574.issue23974@psf.upfronthosting.co.za>
2015-04-21 03:25:22rhettingerlinkissue23974 messages
2015-04-21 03:25:21rhettingercreate