Skip to content

LESSON 9: Mock VRF why is random deterministic? #1155

Answered by alymurtazamemon
0xCardiE asked this question in Q&A
Discussion options

You must be logged in to vote

@adriadrop In the video Patrick used a deployer account everywhere that was account no 0 but in the GitHub repo in beforeEach, it is player from account no 1 that is why you are seeing 2 instead of one and you can see in the video Patrick starts loop from index 1 but in the repo, it is from 2. It is the only reason you can remove the player account and use deployer as in video as use 1 instead of 2 everywhere.

And now come the part, why we have fix number? so in mocks, it does not change it every time returns the same while but in the testnet it will.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@0xCardiE
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by 0xCardiE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants