Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit adc8ac2

Browse files
committed
Fixes #1190
1 parent 9bd41ed commit adc8ac2

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

lib/controller/checks.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -719,16 +719,14 @@ def _():
719719
kb.injection = injection
720720

721721
for i in xrange(conf.level):
722-
randInt1, randInt2, randInt3 = (_() for j in xrange(3))
722+
while True:
723+
randInt1, randInt2, randInt3 = (_() for j in xrange(3))
723724

724-
randInt1 = min(randInt1, randInt2, randInt3)
725-
randInt3 = max(randInt1, randInt2, randInt3)
725+
randInt1 = min(randInt1, randInt2, randInt3)
726+
randInt3 = max(randInt1, randInt2, randInt3)
726727

727-
while randInt1 >= randInt2:
728-
randInt2 = _()
729-
730-
while randInt2 >= randInt3:
731-
randInt3 = _()
728+
if randInt3 > randInt2 > randInt1:
729+
break
732730

733731
if not checkBooleanExpression("%d=%d" % (randInt1, randInt1)):
734732
retVal = None

0 commit comments

Comments
 (0)