Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: high
Valid

using on-chain data to generate the random number is Risky

The contract uses block.timestamp and block.difficulty for randomness which can be manipulated by miners to some extent. This could potentially affect the fairness of the raffle.

Recommendations

use Chainlink VRFConsumer for secure randomness

Updates

Lead Judging Commences

Hamiltonite Lead Judge about 2 years ago
Submission Judgement Published
Validated
Assigned finding tags:

weak-randomness

Root cause: bad RNG Impact: manipulate winner

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!