Allow specification of random seed.

Remove redundant use of SecureRandom, as we don't use nextLong() anymore.