• tracyspcy@lemmy.mlOPM
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    It is definitely a trick question and code intentionally made to be vulnerable to have fun finding what’s wrong and why it is bad practice to do so :)

  • Lixen@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    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 and then see if you can derive the number on the first guess.