Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Set Miller-Rabin rounds based on bitsize #58
Please refactor so that determining the number of rounds needed is in its own function, and add unittests.
It's also quite a lot of code for something that's essentially:
if bitsize >= 1536: return 3 if bitsize >= 1024: return 4 if bitsize >= 512: return 7 return 10