- Hashes of valid entry addresses and their respective tickets range published at https://gist.github.com/kvhnuke/df1ece7863aeed2dfe9ba20e4cef85d7
- Hash is drived using Keccak256(eth address)
- Winning block number will be 13960500, let's call this
N
- Then we will collect the Hashes of
blockHash(N),blockHash(N+1),blockHash(N+2),blockHash(N+3),blockHash(N+4)
(Total of 5 blockhashes) - Then use following formula to select the Winners,
NE
number of entries (4592)
function randomGen(uint blockHash) constant returns (uint randomNumber) { return(blockHash % NE) + 1; }
- This will return the winning ticket of the published list, list is 1 based. If it returns the same winner twice, we will pick the next in line!
Last active
January 18, 2022 08:51
-
-
Save kvhnuke/07694161b11a9bd896dfa34907a5294e to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment