changed SecureRandom to random due to deployment problem