mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.12] Fix an ironic typo in a code comment. (gh-109186) (#109188)
Fix an ironic typo in a code comment. (gh-109186)
(cherry picked from commit 75cd86599b
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
This commit is contained in:
parent
acde502e8a
commit
888bcf49c0
1 changed files with 1 additions and 1 deletions
|
@ -827,7 +827,7 @@ class Random(_random.Random):
|
|||
return k
|
||||
|
||||
# Acceptance-rejection test.
|
||||
# Note, the original paper errorneously omits the call to log(v)
|
||||
# Note, the original paper erroneously omits the call to log(v)
|
||||
# when comparing to the log of the rescaled binomial distribution.
|
||||
if not setup_complete:
|
||||
alpha = (2.83 + 5.1 / b) * spq
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue