mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
random module: Convert a "while 1" to "while True (GH-21700)
This commit is contained in:
parent
5c3270939c
commit
6a613f90bf
1 changed files with 1 additions and 1 deletions
|
@ -682,7 +682,7 @@ class Random(_random.Random):
|
|||
bbb = alpha - LOG4
|
||||
ccc = alpha + ainv
|
||||
|
||||
while 1:
|
||||
while True:
|
||||
u1 = random()
|
||||
if not 1e-7 < u1 < 0.9999999:
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue