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 vstinner
Recipients adiroiban, loewis, vstinner, zooko
Date 2012-04-13.10:00:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334311215.55.0.766622889998.issue9123@psf.upfronthosting.co.za>
In-reply-to
Content
-        if (RAND_pseudo_bytes((unsigned char*)
+        if (RAND_bytes((unsigned char*)

This is not a good idea: RAND_bytes() is blocking, whereas os.urandom() doesn't block on other platforms. os.urandom() is similar to /dev/urandom (non blocking), whereas /dev/random is blocking. With this patch, Python may block at startup if there is not enough entropy.
History
Date User Action Args
2012-04-13 10:00:15vstinnersetrecipients: + vstinner, loewis, zooko, adiroiban
2012-04-13 10:00:15vstinnersetmessageid: <1334311215.55.0.766622889998.issue9123@psf.upfronthosting.co.za>
2012-04-13 10:00:14vstinnerlinkissue9123 messages
2012-04-13 10:00:14vstinnercreate