performance of script to write very long lines of random chars

Oscar Benjamin oscar.j.benjamin at gmail.com
Thu Apr 11 05:47:43 EDT 2013


On 11 April 2013 08:47, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:

> One thing to be aware of: urandom may run out of entropy, and then it
> will slow down a lot. If you don't care about cryptographic randomness,
> you could use this instead:

Reading this I'm realising that I don't really know what os.urandom
is. How exactly is it generating random numbers and what do you mean
by it running out of entropy?


Oscar



More information about the Python-list mailing list