Could a truly random number be generated using pings to pseudo-randomly selected IP addresses?

后端 未结 23 2112
天命终不由人
天命终不由人 2021-01-30 16:28

The question posed came about during a 2nd Year Comp Science lecture while discussing the impossibility of generating numbers in a deterministic computational device.

Th

23条回答
  •  渐次进展
    2021-01-30 16:37

    Yes, it's possible, but... the devil's in the details.

    If you're going to generate a 32-bit integer, you need to gather >32 bits of entropy (and use a sufficient mixing function to get that entropy spread around, but that's known and doable). The big question that is:

    how much entropy do ping times have?

    The answer to this question depends on all sorts of assumptions about the network and your attack model, and there's different answers in different circumstances.

    If attackers are able to totally control ping times, you get 0 bits of entropy per ping, and you can't ever total 32-bits of entropy, no matter how much you mix. If they have less than perfect control over ping times, you'll get some entropy, and (if you don't overestimate the amount of entropy you're gathering) will get perfectly random 32-bit numbers.

提交回复
热议问题