/** * Constructs a MonsterGen with the given seed for the default RNG. */ public MonsterGen(long seed) { srng.setState(seed); } /**
/** * Constructs a MonsterGen with the given seed (hashing seed with CrossHash) for the default RNG. */ public MonsterGen(String seed) { srng.setState(CrossHash.hash(seed)); }
rng.setState(seed); factionCount = Math.abs(factionCount % 254); Thesaurus th = new Thesaurus(rng.nextLong());