Set the RNG on the algorithm instance builder
Fix Java 8 build