My feeling is this entire issue of secret key handling deserves a broader discussion.
We don’t have a key generation function and Core won’t need one. If we’re now targeting different users more, maybe it’s time to have one. But it’s hard, see all the discussion points above. And it really depends on the user’s platform. So actually I’d be happy with good examples and some references to correct methods to get randomness on different OSes.
On the other hand, nothing should stop us from exporting a cleaning function in #636, even if we don’t have one for key gen.
What are other libraries doing for key generation?
Originally posted by @real-or-random in #748 (comment)