Kruhlmann / gatekeeper

Fight club CAPTCHA bot
GNU General Public License v3.0
1 stars 4 forks source link

Fix the calculation of block chance #6

Closed ghost closed 4 years ago

ghost commented 4 years ago

Block chance was being calculated incorrectly.

The check for front was backwards.

Additionally the returned block chance does not have to be rounded like others.

ghost commented 4 years ago

Fair statement. I had thought similar when making the chance, block chance will only ever be a .0 or .5 so figured it was safe. Reverted.