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: <[email protected]> |
| 2020-04-14 21:04:50 | pitrou | link | issue40282 messages |
| 2020-04-14 21:04:50 | pitrou | create | |
|