This error occur while running the following program
import java.security.SecureRandom;
import java.util.Random;
public class IBMSecureRandom1
{
public static void main(String[] args) {
try {
// get a real random generator
SecureRandom reallyRandom = SecureRandom.getInstance("IBMSecureRandom","IBMJCECCA");
System.out.print("Some really random numbers: ");
for (int i = 0; i < 3; i++) {
System.out.print(reallyRandom.nextInt() + " ");
}
System.out.println();
// make a pseudo random generator seeded by the real random generator
Random pseudoRandom = new Random(reallyRandom.nextLong());
System.out.print("Some pseudo random numbers: ");
for (int i = 0; i < 3; i++) {
System.out.print(pseudoRandom.nextInt() + " ");
}
System.out.println();
}
catch (Exception e) {
System.err.println("Something went wrong ...");
e.printStackTrace();
}
}
}
I dont know whether i have to add any jar file or something else