Commit 8a85c341 authored by Geoff Thorpe's avatar Geoff Thorpe
Browse files

The problem of rsa key-generation getting stuck in a loop for (pointlessly)

small key sizes seems to result from the code continually regenerating the
same prime value once the range is small enough. From my tests, this change
fixes the problem by setting an escape velocity of 3 repeats for the second
of the two primes.

PR: 874
parent bcfea9fb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment