We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc0717f commit 59e140dCopy full SHA for 59e140d
azalea/benches/pathfinder.rs
@@ -15,7 +15,7 @@ use azalea_inventory::Menu;
15
use azalea_world::{Chunk, ChunkStorage, PartialChunkStorage};
16
use criterion::{criterion_group, criterion_main, Criterion};
17
use parking_lot::RwLock;
18
-use rand::Rng;
+use rand::{rngs::StdRng, Rng, SeedableRng};
19
20
fn generate_bedrock_world(
21
partial_chunks: &mut PartialChunkStorage,
@@ -31,7 +31,7 @@ fn generate_bedrock_world(
31
}
32
33
34
- let mut rng = rand::thread_rng();
+ let mut rng = StdRng::seed_from_u64(0);
35
36
for chunk_x in -size..size {
37
for chunk_z in -size..size {
0 commit comments