removed unnecessary and unsafe SecureRandom