@Test public void test() { for(int i=0; i<10; i++) { Integer result = bean.getObject(); System.out.println(result); } }
@Override public Integer getObject() { try { int time = new java.util.Date().hashCode(); int ipAddress = InetAddress.getLocalHost().hashCode(); int rand = metaPrng.nextInt(); int seed = (ipAddress & 0xffff) | ((time & 0x00ff) << 32) | (rand & 0x0f000000); logger.info("seed = " + seed); return seed; } catch (UnknownHostException e) { throw new RuntimeException(e); } }
PRNGSeedFactoryBean implements FactoryBean<Integer> { @Override public Integer getObject() { try { int time = new java.util.Date().hashCode(); int ipAddress = InetAddress.getLocalHost().hashCode(); int rand = metaPrng.nextInt(); int seed = (ipAddress & 0xffff) | ((time & 0x00ff) << 32) | (rand & 0x0f000000); logger.info("seed = " + seed); return seed; } catch (UnknownHostException e) { throw new RuntimeException(e); } } }
PRNGSeedFactoryBean implements FactoryBean<Integer> { @Override public Integer getObject() { try { int time = new java.util.Date().hashCode(); int ipAddress = InetAddress.getLocalHost().hashCode(); int rand = metaPrng.nextInt(); int seed = (ipAddress & 0xffff) | ((time & 0x00ff) << 32) | (rand & 0x0f000000); logger.info("seed = " + seed); return seed; } catch (UnknownHostException e) { throw new RuntimeException(e); } }  }
PRNGSeedFactoryBean implements FactoryBean<Integer> { @Override public Integer getObject() { try { int time = new java.util.Date().hashCode(); int ipAddress = InetAddress.getLocalHost().hashCode(); int rand = metaPrng.nextInt(); int seed = (ipAddress & 0xffff) | ((time & 0x00ff) << 32) | (rand & 0x0f000000); logger.info("seed = " + seed); return seed; } catch (UnknownHostException e) { throw new RuntimeException(e); } }  @Override Integer getObject(); @Override Class<?> getObjectType(); @Override boolean isSingleton(); }
PRNGSeedFactoryBean implements FactoryBean<Integer> { @Override public Integer getObject() { try { int time = new java.util.Date().hashCode(); int ipAddress = InetAddress.getLocalHost().hashCode(); int rand = metaPrng.nextInt(); int seed = (ipAddress & 0xffff) | ((time & 0x00ff) << 32) | (rand & 0x0f000000); logger.info("seed = " + seed); return seed; } catch (UnknownHostException e) { throw new RuntimeException(e); } }  @Override Integer getObject(); @Override Class<?> getObjectType(); @Override boolean isSingleton();  }