Message267981
I'm -1 on a block=True/False parameter. It makes the API more awkward and will make people move away from os.urandom() to a self-made RNG because they perceive os.urandom() as potential blocking.
Victor, you can use sysctl on all BSD and Linux to check if the RNG has been seeded. On Linux it is kernel.random.entropy_avail >= kernel.random.read_wakeup_threshold. On BSD it is kern.random.sys.seeded == 1. |
|
Date |
User |
Action |
Args |
2016-06-09 08:11:14 | christian.heimes | set | recipients:
+ christian.heimes, lemburg, ncoghlan, vstinner, larry, martin.panter, dstufft, Lukasa, Theodore Tso |
2016-06-09 08:11:14 | christian.heimes | set | messageid: <1465459874.76.0.988827305934.issue27266@psf.upfronthosting.co.za> |
2016-06-09 08:11:14 | christian.heimes | link | issue27266 messages |
2016-06-09 08:11:14 | christian.heimes | create | |
|