Author pitrou
Recipients mark.dickinson, pitrou, rhettinger, serhiy.storchaka, steven.daprano, tim.peters, vstinner
Date 2020-04-14.21:04:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586898290.36.0.525796713569.issue40282@roundup.psfhosted.org>
In-reply-to
Content
I agree I don't *need* it per se.  However, I suspect that for non-exports it would be easier than
`getrandbits(nbytes * 8).to_bytes(nbytes, 'endian')`.

As for `secrets.token_bytes()`, it's not really adequate for regular pseudo-random data generation when you want to use a fixed seed.  And I'm not sure what its performance characteristics are when you pass a large size.
History
Date User Action Args
2020-04-14 21:04:50pitrousetrecipients: + pitrou, tim.peters, rhettinger, mark.dickinson, vstinner, steven.daprano, serhiy.storchaka
2020-04-14 21:04:50pitrousetmessageid: <1586898290.36.0.525796713569.issue40282@roundup.psfhosted.org>
2020-04-14 21:04:50pitroulinkissue40282 messages
2020-04-14 21:04:50pitroucreate