Use SecureRandom to generate random numbers.