Message158204
| 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:15 | vstinner | set | recipients:
+ vstinner, loewis, zooko, adiroiban |
| 2012年04月13日 10:00:15 | vstinner | set | messageid: <1334311215.55.0.766622889998.issue9123@psf.upfronthosting.co.za> |
| 2012年04月13日 10:00:14 | vstinner | link | issue9123 messages |
| 2012年04月13日 10:00:14 | vstinner | create |
|