From 805e739f84d3cbf2896207f8c0504246dd19344f Mon Sep 17 00:00:00 2001 From: Stefan Budim <94196479+stefanbudim@users.noreply.github.com> Date: Wed, 4 Jun 2025 23:43:38 +0200 Subject: [PATCH] use SecureRandom() which is supported by window and linux. NativePRNG is not available on windows and throws Exception in thread main java.security.NoSuchAlgorithmException: NativePRNG SecureRandom not available --- src/main/java/io/vpv/net/SSLTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/vpv/net/SSLTest.java b/src/main/java/io/vpv/net/SSLTest.java index 9c4f821..928099b 100644 --- a/src/main/java/io/vpv/net/SSLTest.java +++ b/src/main/java/io/vpv/net/SSLTest.java @@ -302,7 +302,7 @@ else if ("--help".equals(arg) ColorPrintUtil.printKeyValue("Testing server ", host + ":" + port); - SecureRandom rand = SecureRandom.getInstance("NativePRNG"); + SecureRandom rand = new SecureRandom(); String reportFormat = "%9s %8s %s%n"; String errorReportFormat = "%9s %8s %s %s%n";