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

Michal Schmidt
2005-01-07T23:33:25Z

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