[Python-Dev] BDFL ruling request: should we block forever waiting for high-quality random bits?
Barry Warsaw
barry at python.org
Fri Jun 10 16:11:59 EDT 2016
On Jun 10, 2016, at 12:05 PM, David Mertz wrote:
>OK. My understanding is that Guido ruled out introducing an os.getrandom()
>API in 3.5.2. But would you be happy if that interface is added to 3.6?
I would.
>It feels to me like the correct spelling in 3.6 should probably be
>secrets.getrandom() or something related to that.
ISTM that secrets is a somewhat higher level API while it makes sense that a
fairly simple plumbing of the underlying C call should go in os. But I
wouldn't argue much if folks had strong opinions to the contrary.
Cheers,
-Barry
More information about the Python-Dev
mailing list