3 ms·
Instead of xor-ing multiple sources of randomness together, it's preferable to feed them all into a cryptographically secure hash function, like Keccak or Blake
by tromp 9y ago
Instead of xor-ing multiple sources of randomness together,
it's preferable to feed them all into a cryptographically secure hash function, like Keccak or Blake2. One of the sources to be added could be the header of a recently published bitcoin block.
- brians 9y agoNot quite. That gets you better mixing, but maybe Blake2 has bias in some bits, or bias in some output bits given bias in some input bits. Xor is nice in that xor of a biased bit and an unbiased bit is an unbiased bit.
- matt_wulfeck 9y agoit would be a terrible oversight to put that thing on the internet, either public or private.