Re:Really Fixing Getrandom()
by WAHa_06x36 on Sunday October 20, 2019 @07:24AM
(#21303479)
However, xoring two arbitrary random variables is NOT guaranteed to preserve entropy. Preserving entropy only happens under certain specific conditions.
[ Parent
| on HN ]
Under what circumstances would xoring `x` and `y` not produce a result with entropy at least as great as `x`?
Re:Really Fixing Getrandom()
by WAHa_06x36 on Monday October 21, 2019 @07:23AM
(#21310964)
In the very obvious cases where x == y, or x == not y, or x == y + 1, or many other correlations.
Only if y is known to be dependent on x. If y is random but just so happens to be `not x` or `== x` then that won't make the result any less random.
0 is as random a number as 529890873740477 is.
Re:Really Fixing Getrandom()
by WAHa_06x36 on Tuesday October 22, 2019 @11:35AM
(#21324840)
Single numbers don't really have entropy at all, so that is not something it even makes sense to talk about.