【发布时间】:2023-02-15 08:34:27
【问题描述】:
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
public class Main {
public static void main(String[] args) throws NoSuchAlgorithmException {
SecureRandom srand = SecureRandom.getInstance("NativePRNG");
System.out.println(srand.nextInt());
}
}
如何在 Windows 上使用 NativePRNG 运行?
【问题讨论】:
标签: java os-dependent