Skip to content

Commit d259ce6

Browse files
committed
Ensure unique initialisation per generic plugin
1 parent fb2aa53 commit d259ce6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

crates/bevy_entropy/src/plugin.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ use crate::component::EntropyComponent;
1616
/// use bevy_app::App;
1717
/// use bevy_entropy::prelude::*;
1818
/// use rand_core::RngCore;
19-
/// use rand_chacha::ChaCha8Rng;
19+
/// use rand_chacha::{ChaCha8Rng, ChaCha12Rng};
2020
///
2121
/// fn main() {
2222
/// App::new()
2323
/// .add_plugin(EntropyPlugin::<ChaCha8Rng>::default())
24+
/// .add_plugin(EntropyPlugin::<ChaCha12Rng>::default())
2425
/// .add_system(print_random_value)
2526
/// .run();
2627
/// }
@@ -82,8 +83,4 @@ where
8283
app.init_resource::<GlobalEntropy<R>>();
8384
}
8485
}
85-
86-
fn is_unique(&self) -> bool {
87-
false
88-
}
8986
}

0 commit comments

Comments
 (0)