You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the following code to generate a ssh key pair:
RsaKeypair::random(rand::thread_rng(), 2048)
which takes usually a few seconds (e.g 2-5s cpu time), but sometimes much longer, e.g. up to 20s and more.
Since the time taken varies a lot, I suspect this might be due to lack of entropy, especially since the required time seems to be much longer in un-attended scenarios (e.g. automatic testing).
Is this a known (accepted?) phenomenon? Could the long duration be circumvented somehow, especially in automatic testing scenarios?
The text was updated successfully, but these errors were encountered:
Yes indeed, the long times are only observed in debug builds? I was just observing this in my own tests.
For some reasons, I need RSA based key for compatibility, but since using --release fixes the issue, this issue could be closed, I guess.
I use the following code to generate a ssh key pair:
which takes usually a few seconds (e.g 2-5s cpu time), but sometimes much longer, e.g. up to 20s and more.
Since the time taken varies a lot, I suspect this might be due to lack of entropy, especially since the required time seems to be much longer in un-attended scenarios (e.g. automatic testing).
Is this a known (accepted?) phenomenon? Could the long duration be circumvented somehow, especially in automatic testing scenarios?
The text was updated successfully, but these errors were encountered: