Torus algorithm and linear congruential generators