使用SecureRandom类替代Random类 java.util.Random 产生确定的值可能被恶意的程序预测到。 java.security.SecureRandom 产生不确定的随机数不能被预测到。 所以优先使用java.security.SecureRandom类。