Exchanged Math.random with secureRandom