Is nextInt of SecureRandom class thread safe?
Hi,
I'm creating a web application and in one of my classes I have the following global variable defined:
privatestaticfinal SecureRandom generator =new SecureRandom();
In one of public methods, I then call:
int index = generator.nextInt(possibleRandomLength);
I therefore need to make sure that the nextInt method of SecureRandom is thread safe due to the obvious multithreading that happens in web applications.
I've browsed the web and the general feeling is that it is, however, can anyone confirm? I'm using Java 1.4.2
Many thanks
Mike

