When generating RSA keys using OpenSSL, if I want to use an external source of randomness (e.g an HSM that can provide random numbers), is the best way to get a new random number (for every generation), dump it to a file, and then use that file in the OpenSSL command line with -rand
?
Is it necessary to balloon that file with several kBs of random numbers?