Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ChrisSD
on Oct 21, 2019
|
parent
|
context
|
favorite
| on:
Really Fixing Getrandom()
Under what circumstances would xoring `x` and `y` not produce a result with entropy at least as great as `x`?
WAHa_06x36
on Oct 21, 2019
[–]
In the very obvious cases where x == y, or x == not y, or x == y + 1, or many other correlations.
ChrisSD
on Oct 21, 2019
|
parent
[–]
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.
WAHa_06x36
on Oct 22, 2019
|
root
|
parent
[–]
Single numbers don't really have entropy at all, so that is not something it even makes sense to talk about.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: