0 Members and 1 Guest are viewing this topic.
Quote from: HackFisher on April 18, 2014, 05:58:20 amQuote from: bytemaster on April 18, 2014, 05:18:19 amHow did they solve the RNG problem?https://github.com/dennismckinnon/Ethereum-Contracts/blob/master/Dennys%20Lotto/Lottery.lspCode: [Select][0x20] (prevhash)[0x40] (coinbase)[0x60] (SHA3 0x20 0x40) ;Random lottery [0x80] (MOD @0x3 @@0x2) ;DRAW!From explanation of the demo and code, it seems being use hash of (block info and prevhash) to resolve the RNG.I've enclosed this thread's link to Dennis, he perhaps can give more info on that if he come here.I listened to his youtube on and off. What I recall is that the "forum" thought hashing the block timestamp was a good idea, but Denny was against that. (for good reason.. the time stamp can be selected within a certain window.) So he ended up using previous block + current block hashes.
Quote from: bytemaster on April 18, 2014, 05:18:19 amHow did they solve the RNG problem?https://github.com/dennismckinnon/Ethereum-Contracts/blob/master/Dennys%20Lotto/Lottery.lspCode: [Select][0x20] (prevhash)[0x40] (coinbase)[0x60] (SHA3 0x20 0x40) ;Random lottery [0x80] (MOD @0x3 @@0x2) ;DRAW!From explanation of the demo and code, it seems being use hash of (block info and prevhash) to resolve the RNG.I've enclosed this thread's link to Dennis, he perhaps can give more info on that if he come here.
How did they solve the RNG problem?
[0x20] (prevhash)[0x40] (coinbase)[0x60] (SHA3 0x20 0x40) ;Random lottery [0x80] (MOD @0x3 @@0x2) ;DRAW!
Contact them!Sent from my SCH-I535 using Tapatalk
I cannot access youtube temporarily, what's is about, is another "Denny" from Ethereum giving a demo?I'll watch that later...
Funny that HackFisher's name is Denny and he is working on our Lotto...