Fixed not random noise

Was cause by temp_seed reaching upper bound of long.
We now use modulo (on MAX_LONG/7) at each step of the seed calculation
to prevent this behavour