| ▲ | throwawayffffas 2 hours ago | |||||||||||||||||||||||||||||||
So what? The point is to be non predictable not to pick all the numbers in the range with exactly the same probability. Would it be a problem if it never generated 16542? | ||||||||||||||||||||||||||||||||
| ▲ | gnfargbl 2 hours ago | parent | next [-] | |||||||||||||||||||||||||||||||
Consider an 8-bit RNG. By your argument, it would not be a problem if the RNG never generated 0. So, it must follow that it would also not be a problem if it never generated {1, 2, 3, ..., 253}. That means that our RNG now only generates the values 254 and 255. Which of the values is generated is unpredictable on any given call. However, 7 of the 8 output bits are now always fixed and so completely predictable. Can you imagine how an attacker could exploit that? Failing to generate only the number 0 is a weaker version of the same class of flaw. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ▲ | antiloper 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
What are you talking about? The point is in fact to pick all the numbers in the range with exactly the same probability. See section 7.3.17 of the Intel SDM, and how NIST SP800-90A (which the SDM refers to) defines "random number". | ||||||||||||||||||||||||||||||||
| ▲ | IAmBroom 16 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
"Random" is used by most people to mean "random with an even distribution". A weighted die is still random, but with an uneven distribution. This is effectively a 2^16-sided, weighted die. | ||||||||||||||||||||||||||||||||
| ▲ | swader999 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
Betty from accounting will have words. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ▲ | Hugsbox 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
That may well be a problem, yes. | ||||||||||||||||||||||||||||||||
| ▲ | wat10000 24 minutes ago | parent | prev [-] | |||||||||||||||||||||||||||||||
“Predictable” and “not pick all numbers in range with exactly the same probability” are synonyms here. | ||||||||||||||||||||||||||||||||