Set seed does not appear to be working, anyone know why?
Merlin1846 opened this issue · comments
use noise::{OpenSimplex, Seedable, NoiseFn};
fn main() {
let g:OpenSimplex = OpenSimplex::new();
println!("{:?}",g.seed());
g.set_seed(128941);
println!("{:?}",g.seed());
}
It should print whatever the default seed is then print the new seed 128941 but instead, it just prints 0 both times. I've tried messing around with different trait imports among other things but nothing changes. I don't know if this is a bug or if I'm just doing something wrong.
I didn't realize that set_seed() returns the noise.
Fbm::new().set_seed(seed)
This worked.