staticvoid More ...putEntries(Map<Object, Object> map) { 86 87/* 88 * SecureRandom 89 * 90 * Register these first to speed up "new SecureRandom()", 91 * which iterates through the list of algorithms 92 */ 93// register the native PRNG, if available 94// if user selected /dev/urandom, we put it before SHA1PRNG, 95// otherwise after it 96booleannativeAvailable= NativePRNG.isAvailable(); 97booleanuseNativePRNG= seedSource.equals(URL_DEV_URANDOM) || 98 seedSource.equals(URL_DEV_RANDOM); 99 100if (nativeAvailable && useNativePRNG) { 101 map.put("SecureRandom.NativePRNG", 102"sun.security.provider.NativePRNG"); 103 } 104 map.put("SecureRandom.SHA1PRNG", 105"sun.security.provider.SecureRandom"); 106if (nativeAvailable && !useNativePRNG) { 107 map.put("SecureRandom.NativePRNG", 108"sun.security.provider.NativePRNG"); 109 } ......