Function base::gen::seeded_rng
[−]
[src]
pub fn seeded_rng<T: Hash, U: Hash>(world_seed: u64, feat_seed: T, loc_seed: U) -> Random
Creates a seeded RNG for use in world gen.
This function takes 3 seed parameters which are hashed and mixed together.
Parameters
world_seed
: The constant world seed as set in the configfeat_seed
: Feature-specific constant seedloc_seed
: Location-seed, for example, X/Y coordinates of a feature