Re: xor: how come so slow?
Steven D'Aprano <steve@REMOVE-THIS-cybersource.com .auwrote:
For those who got a bit lost here, I'd would point out that Knuth[1] has an
excellent chapter on random numbers that includes a detailed discussion of
this effect. His net takeaway is that most of the things people do to
increase randomness actually have exactly the opposite effect.
-----
[1] Knuth, Donald. The Art of Computer Programming, Volume 2,
Seminumerical Algorithms.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Steven D'Aprano <steve@REMOVE-THIS-cybersource.com .auwrote:
>
>On Fri, 17 Oct 2008 20:51:37 +1300, Lawrence D'Oliveiro wrote:
>
>
>Hmmm... why do you say that xoring random data with other random data
>produces less randomness than you started with?
>
>I'm not saying that you're wrong, and certainly it is pointless since
>you're not going to improve on the randomness of /dev/urandom without a
>lot of work. But less random?
>On Fri, 17 Oct 2008 20:51:37 +1300, Lawrence D'Oliveiro wrote:
>
>Is piece really meant to be random? If so, your create_random_b lock
>function isn't achieving much--xoring random data together isn't going
>to produce anything more exciting than less random data than you started
>with.
>function isn't achieving much--xoring random data together isn't going
>to produce anything more exciting than less random data than you started
>with.
>Hmmm... why do you say that xoring random data with other random data
>produces less randomness than you started with?
>
>I'm not saying that you're wrong, and certainly it is pointless since
>you're not going to improve on the randomness of /dev/urandom without a
>lot of work. But less random?
excellent chapter on random numbers that includes a detailed discussion of
this effect. His net takeaway is that most of the things people do to
increase randomness actually have exactly the opposite effect.
-----
[1] Knuth, Donald. The Art of Computer Programming, Volume 2,
Seminumerical Algorithms.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Comment