Lixen,

For those that want to have an actual go at it: when deploying it with hardhat for example, you can pass in Math.floor(Math.random()*1000) as the constructor argument in the deploy script, and then see if you can derive the number on the first guess.

tracyspcy,
@tracyspcy@lemmy.ml avatar

The formula will return a specific result of uint256 type which will be used in constructor on deployment, right? 😉

tracyspcy,
@tracyspcy@lemmy.ml avatar

BTW @cypherpunks was right. Anyone can view the contract deployment transaction and see the value of secretNumber that was passed as an argument to the constructor.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • crypto@lemmy.ml
  • tacticalgear
  • DreamBathrooms
  • cisconetworking
  • khanakhh
  • mdbf
  • magazineikmin
  • modclub
  • InstantRegret
  • rosin
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • ngwrru68w68
  • provamag3
  • everett
  • normalnudes
  • cubers
  • tester
  • thenastyranch
  • osvaldo12
  • GTA5RPClips
  • ethstaker
  • megavids
  • anitta
  • Leos
  • JUstTest
  • lostlight
  • All magazines