3 ms·
> wait, I'm not dignifying /dev/random: it refuses to provide output at random Why would this be a problem? Read one byte from /dev/random, and observe one of
by thaumasiotes 11y ago
> wait, I'm not dignifying /dev/random: it refuses to provide output at random
Why would this be a problem? Read one byte from /dev/random, and observe one of 257 possible values chosen at random. :D
- eru 11y agoYou'd have to correct for the biases. Not only in probability, but subsequent calls are also not independent.
- thaumasiotes 11y agoSure, I realize that. (Although "subsequent calls are not independent" means it's not actually refusing to respond "at random".) I'm just pointing out in a facetious, emoticon-marked manner that "it behaves randomly" is kind of an odd insult to level against a source of randomness.
- lomnakkus 11y agoI think the point is that it should behave predictably (but of course give you random data). Behavior is a "larger" concept than just what kind of data you get from a thing.
- kzrdude 11y agoYou can quite predictably drain dev/random and make it not respond randomly. in the 257-valued joke's terms, you can force it to always emit the blocking behavior.