< prev index next >

src/java.base/unix/classes/sun/security/provider/NativePRNG.java

Print this page

        

*** 123,133 **** /** * Create a RandomIO object for all I/O of this Variant type. */ private static RandomIO initIO(final Variant v) { return AccessController.doPrivileged( ! new PrivilegedAction<RandomIO>() { @Override public RandomIO run() { File seedFile; File nextFile; --- 123,133 ---- /** * Create a RandomIO object for all I/O of this Variant type. */ private static RandomIO initIO(final Variant v) { return AccessController.doPrivileged( ! new PrivilegedAction<>() { @Override public RandomIO run() { File seedFile; File nextFile;
*** 438,448 **** private void implSetSeed(byte[] seed) { synchronized (LOCK_SET_SEED) { if (seedOutInitialized == false) { seedOutInitialized = true; seedOut = AccessController.doPrivileged( ! new PrivilegedAction<OutputStream>() { @Override public OutputStream run() { try { return new FileOutputStream(seedFile, true); } catch (Exception e) { --- 438,448 ---- private void implSetSeed(byte[] seed) { synchronized (LOCK_SET_SEED) { if (seedOutInitialized == false) { seedOutInitialized = true; seedOut = AccessController.doPrivileged( ! new PrivilegedAction<>() { @Override public OutputStream run() { try { return new FileOutputStream(seedFile, true); } catch (Exception e) {
< prev index next >