Fortify 漏洞 由 nextInt() 实施的随机数生成器不能抵挡加密攻击
亲测可用:
/**
* 随机数生成
* @param seed
* @return
*/
public static int nextInt(int seed){
return new SecureRandomTest().getRandom(seed);
}
/**
* 随机数生成
* @return
*/
public static int nextInt(){
...
原创
2019-01-25 11:45:16 ·
2883 阅读 ·
0 评论