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 christian.heimes
Recipients Colm Buckley, Lukasa, Theodore Tso, alex, christian.heimes, doko, dstufft, larry, lemburg, martin.panter, matejcik, ned.deily, python-dev, rhettinger, skrah, thomas-petazzoni, vstinner, ztane
Date 2016-06-08.08:48:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465375690.8.0.936588256285.issue26839@psf.upfronthosting.co.za>
In-reply-to
Content
Larry,  /dev/urandom blocks on BSD when it hasn't been seeded yet. But it looks like we can use sysctl to fetch the seed state from kern.random.sys.seeded.

https://www.freebsd.org/cgi/man.cgi?query=random&sektion=4

     The software generator will start in an unseeded state, and will block
     reads until it is (re)seeded.  This may cause trouble at system boot when
     keys and the like are generated from /dev/random so steps should be taken
     to	ensure a reseed	as soon	as possible.  The sysctl(8) controlling	the
     seeded status (see	below) may be used if security is not an issue or for
     convenience during	setup or development.
History
Date User Action Args
2016-06-08 08:48:10christian.heimessetrecipients: + christian.heimes, lemburg, rhettinger, doko, vstinner, larry, matejcik, ned.deily, alex, skrah, python-dev, martin.panter, ztane, dstufft, Lukasa, thomas-petazzoni, Colm Buckley, Theodore Tso
2016-06-08 08:48:10christian.heimessetmessageid: <1465375690.8.0.936588256285.issue26839@psf.upfronthosting.co.za>
2016-06-08 08:48:10christian.heimeslinkissue26839 messages
2016-06-08 08:48:10christian.heimescreate