Message158204
- 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. |
|
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 | |
|