Code example for ScheduledExecutorService

Methods: scheduleAtFixedRate

0
		} 
		LOGGER.info("Seeding PRNG"); 
		random.nextInt(); // force seeding
		 
		// update the PRNG every hour, starting in an hour 
		pool.scheduleAtFixedRate(new UpdateTask(random, LOGGER), 1, 1, TimeUnit.HOURS);
	} 
	 
	@Override 
	public SecureRandom get() {
		return random;
	} 
}