Trick or Treat

First Flight #27

Trick or Treat

Beginner FriendlyFoundry
100 EXP
Submission Details
Severity: low
Invalid

`random` variable in `trickOrTreat()` uses block.timestamp and block.prevrandao, which are not good source of randomness

Updates

Appeal created

bube Lead Judge 19 days ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

[invalid] Weak randomness

It's written in the README: "We're aware of the pseudorandom nature of the current implementation. This will be replaced with Chainlink VRF in later builds." This is a known issue.

Support

FAQs

Can’t find an answer? Join our Discord or follow us on Twitter.

Cyfrin
Updraft
CodeHawks
Solodit
Resources