In some of the code snippets, the following is used:
threshold = -bound % bound
I don't understand how that isn't always zero. What am I missing? threshold = -bound % bound
I don't understand how that isn't always zero. What am I missing?So it's doing (2^n - bound) % bound = 2^n % bound.