4 ms·
Flip the coin to get sufficient entropy, then take the md5 of the bits generated. That should give you some number of virtual flips as output.
by joshu 17y ago
Flip the coin to get sufficient entropy, then take the md5 of the bits generated. That should give you some number of virtual flips as output.
- Eliezer 17y agoI was starting to think in terms of arithmetic encoding before reading the article, but the given solution is far more elegant.
- pvg 17y agoFlipping for 'sufficient' entropy is pretty much what the method does, where 'sufficient' in this case is the maximum.
- defen 17y agoSince you can't end up with more entropy than you started with by using a deterministic process, if you're going to do that you may as well use the bits to seed a random number generator.