private void entropy_init(File seed, boolean reseedOnStartup) { if(reseedOnStartup) { Properties sys = System.getProperties(); EntropySource startupEntropy = new EntropySource(); // Consume the system properties list for(Enumeration<?> enu = sys.propertyNames(); enu.hasMoreElements();) { String key = (String) enu.nextElement(); consumeString(key); consumeString(sys.getProperty(key)); } // Consume the local IP address try { consumeString(InetAddress.getLocalHost().toString()); } catch(Exception e) { // Ignore } readStartupEntropy(startupEntropy); } read_seed(seed); }