On page 56, it says you’re specifying the RNG back end as follows:
#[derive(Resource)]
pub struct RandomNumberGenerator {
rng: StdRng,
}
This is wrong, we don’t derive resource for this struct until page 64.
On page 56, it says you’re specifying the RNG back end as follows:
#[derive(Resource)]
pub struct RandomNumberGenerator {
rng: StdRng,
}
This is wrong, we don’t derive resource for this struct until page 64.