xor: how come so slow?

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Fri Oct 17 04:28:26 EDT 2008


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_block
> 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? 

-- 
Steven



More information about the Python-list mailing list