Open fjarri opened 1 year ago
Why isn't this outsourced to calling generate_prime_with_rng where the passed in RNG is seeded?
It's not about being consistent within the same version of the library (which is the case now), but about being consistent within the same major version.
Ah, thanks for the clarification. Agreed on the value of that.
For some applications where a prime is generated as an output of some hash, it is important to make sure that the same prime number is produced given the same RNG state. We need to add a test with some pre-generated primes with given RNG states, and make sure that when that test detects a change, it is either reverted, or considered a breaking change in the crate.