Thanks a lot this helps, I was wondering if looking for the next prime from a random value is introducing some bias
compared to building iterating on random numbers until one fall on a prime, (which is obviously more time consuming).
Also I am curious though about your comment: how does the NSA or ESA get to know the secret,
do they bruteforce "weak" primes ?