Re: /dev/random vs. /dev/urandom

From: Michal Schmidt
Date: Fri Jan 07 2005 - 18:46:35 EST


linux-os wrote:
Also, the following shows that the AND operation will destroy
the randomness of the data. In this case I AND with 1, which
should produce as many '1's as '0's, ... and clearly does not.


It should not. If it always resulted in exactly the same number of '0's and '1's then it wouldn't be random. But the relative rate of '0's and '1's will approach 50% if the number of tries is statistically significant. 32 tries isn't.

Michal
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/