< prev index next >

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

Print this page

        

*** 369,380 **** private final Object LOCK_SET_SEED = new Object(); // constructor, called only once from initIO() private RandomIO(File seedFile, File nextFile) throws IOException { this.seedFile = seedFile; ! seedIn = new FileInputStream(seedFile); ! nextIn = new FileInputStream(nextFile); nextBuffer = new byte[BUFFER_SIZE]; } // get the SHA1PRNG for mixing // initialize if not yet created --- 369,380 ---- private final Object LOCK_SET_SEED = new Object(); // constructor, called only once from initIO() private RandomIO(File seedFile, File nextFile) throws IOException { this.seedFile = seedFile; ! seedIn = FileInputStreamPool.getInputStream(seedFile); ! nextIn = FileInputStreamPool.getInputStream(nextFile); nextBuffer = new byte[BUFFER_SIZE]; } // get the SHA1PRNG for mixing // initialize if not yet created
< prev index next >