Summary
Function Audited: searchForEgg()
Issue: Off-by-one error in egg discovery condition
Severity: Low
Status: Unresolved
In the following condition:
The comparison excludes the exact threshold value. For example, with a 20% chance (eggFindThreshold = 20
), only values 0–19
qualify, effectively giving a 19% chance instead of 20%.
Probability Mismatch: Actual chance to find an egg is 1% lower than intended.
Game Balance: Slight deviation from expected odds may impact fairness over many attempts.
Manual code review
Update the condition to include the threshold value:
This ensures the egg-finding probability exactly matches the configured percentage.
Insecure methods to generate pseudo-random numbers
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.