File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ use bevy::color::{
66} ;
77use bevy:: input:: mouse:: { MouseButton , MouseButtonInput , MouseMotion } ;
88use bevy:: prelude:: * ;
9- use rand:: { rngs:: StdRng , Rng , SeedableRng } ;
9+ use rand:: { Rng , SeedableRng } ;
10+ use rand_chacha:: ChaCha8Rng ;
1011use std:: f32:: consts:: PI ;
1112
1213fn main ( ) {
@@ -44,7 +45,7 @@ struct Instructions;
4445struct MousePressed ( bool ) ;
4546
4647#[ derive( Resource ) ]
47- struct SeededRng ( StdRng ) ;
48+ struct SeededRng ( ChaCha8Rng ) ;
4849
4950// Setup
5051
@@ -53,7 +54,7 @@ fn setup(
5354 mut meshes : ResMut < Assets < Mesh > > ,
5455 mut materials : ResMut < Assets < StandardMaterial > > ,
5556) {
56- let mut seeded_rng = StdRng :: seed_from_u64 ( 19878367467712 ) ;
57+ let mut seeded_rng = ChaCha8Rng :: seed_from_u64 ( 19878367467712 ) ;
5758
5859 // A camera looking at the origin
5960 commands. spawn ( Camera3dBundle {
You can’t perform that action at this time.
0 commit comments