True random generation in Java

后端 未结 13 2306
一生所求
一生所求 2020-12-01 01:18

I was reading the Math.random() javadoc and saw that random is only psuedorandom.

Is there a library (specifically java) that generates random numbers according to

13条回答
  •  春和景丽
    2020-12-01 02:05

    The Java Cryptographic Architecture requires cryptographically-strong random numbers. It contains the SecureRandom class mentioned by @saua.

提交回复
热议问题