Generating a large random string

Paul Rubin http
Thu Feb 19 20:48:53 EST 2004


"Sean Ross" <sross at connectmail.carleton.ca> writes:
> I'd be interested to see how
> 
> s = open("/dev/urandom").read(3000)
> 
> compares, and, if better, whether something similar can
> be done on Windows.

On Linux, this is almost instantaneous.  Reading 1 megabyte takes
under a second on my 700 mhz P3.



More information about the Python-list mailing list