Message366446
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. |
|
Date |
User |
Action |
Args |
2020-04-14 21:04:50 | pitrou | set | recipients:
+ pitrou, tim.peters, rhettinger, mark.dickinson, vstinner, steven.daprano, serhiy.storchaka |
2020-04-14 21:04:50 | pitrou | set | messageid: <1586898290.36.0.525796713569.issue40282@roundup.psfhosted.org> |
2020-04-14 21:04:50 | pitrou | link | issue40282 messages |
2020-04-14 21:04:50 | pitrou | create | |
|