Y
Hacker News
new
|
ask
|
show
|
jobs
by
lsc36
2101 days ago
That depends on the modulus being divisible by 8, which is not always the case. A common example is modulus = 2^31 - 1 [0] which is prime.
[0]
https://en.wikipedia.org/wiki/Linear_congruential_generator#...