RFR 8066397 Remove network-related seed initialization code in ThreadLocal/SplittableRandom

Peter Levart peter.levart at gmail.com
Wed Dec 17 17:53:42 UTC 2014


On 12/17/2014 06:37 PM, Peter Levart wrote:
>> Martin wrote:
>>
>>> https://bugs.openjdk.java.net/browse/JDK-8047769
>>
>> If you've been following this bug, I've figured why the NativePRNG$* 
>> classes are initing and thus opening the /dev/random,urandom.  This 
>> definitely needs some adjustment.
>
> Something like the following could be used in NativePRNG and 
> URLSeedGenerator:
>
> http://cr.openjdk.java.net/~plevart/misc/FileInputStreamPool/FileInputStreamPool.java 
>


Note that this code has a nasty bug - don't use it. I'll post a fixed 
source later...

Peter




More information about the core-libs-dev mailing list