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

Use oracle to generate random numbers

Summary

block.timestamp and block.prevrandao can be easily precalculated, so the are not good for PRNG generation

Vulnerability Details

Impact

Anyone can check the result before fighting. They only need to deploy a contract with the same code, and only combat when they are sure that they will win.

Tools Used

Manual review

Recommendations

Use oracles like chainlink to provide PRNG numbers

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

Weak Randomness

Support

FAQs

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