Corrected a overlooked randomness bias

A bias was found in the random intmod number generator as well as the
one time pad generator (from password) a new function was created to
specifically cover this issue (genpad)