This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients alex, dstufft, ezio.melotti, neologix, pitrou, rhettinger, tim.peters
Date 2014-05-11.11:02:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399806145.18.0.326651963535.issue21470@psf.upfronthosting.co.za>
In-reply-to
Content
Several thoughts:

* We're not reading urandom "a huge number of times per second".  This is just one read of 2,500 bytes.  What Ted is talking about and what we're doing are as different as night and day.

* We're also not doing this in a loop.  It is just once when Random() is initialized.  There are no threading issues here.

* 32 bytes is good but it is not enough.  There is a reason that the state space for the Mersenne Twister is so large to begin with.  Functions as simple as shuffle() eat through the possibilities very quickly.

* The "doctor, it hurts" quote is funny, but we don't have any hurt here.  Running "import os; os.urandom(2500)" takes under a millisecond on my system.
History
Date User Action Args
2014-05-11 11:02:25rhettingersetrecipients: + rhettinger, tim.peters, pitrou, ezio.melotti, alex, neologix, dstufft
2014-05-11 11:02:25rhettingersetmessageid: <1399806145.18.0.326651963535.issue21470@psf.upfronthosting.co.za>
2014-05-11 11:02:25rhettingerlinkissue21470 messages
2014-05-11 11:02:24rhettingercreate