➜

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.

作者 mark.dickinson
收信人 belopolsky, mark.dickinson, orsenthil, pitrou, rhettinger, terry.reedy, vstinner
日期 2010-06-24.09:33:38
SpamBayes Score 0.00011455548
Marked as misclassified 否
Message-id <1277372021.59.0.780183421966.issue9025@psf.upfronthosting.co.za>
In-reply-to
内容
A couple of points:

(1) In addition to documenting the extent of the repeatability, it would be good to have tests to prevent changes that inadvertently change the sequence of randrange values.

(2) For large arguments, cross-platform reproducibility is already a bit fragile.  For example, the _randbelow function depends on the system _log function---see the line

    k = int(1.00001 + _log(n-1, 2.0))

Now that we have the bit_length method available, it might be better to use that.
历史
日期 用户 动作 参数
2010-06-24 09:33:42mark.dickinson修改recipients: + mark.dickinson, rhettinger, terry.reedy, belopolsky, orsenthil, pitrou, vstinner
2010-06-24 09:33:41mark.dickinson修改messageid: <1277372021.59.0.780183421966.issue9025@psf.upfronthosting.co.za>
2010-06-24 09:33:39mark.dickinson链接issue9025 messages
2010-06-24 09:33:39mark.dickinson创建