sr = SecureRandom.getInstance("PRNG", "SunMSCAPI");
long start = System.nanoTime();
int x = 0;
for(int i = 0; i < 10000; i++) {
if (i % 100 == 0) System.err.print(".");
if (sr.nextBoolean()) x++;
};
t = (System.nanoTime() - start) / 1000000000.0;
System.err.println("\nSpend " + t + " seconds");
} catch (Exception e) {
// Not supported here, maybe not a Win32