Code cleanup, adds seed setter on generator.