aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/board/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/board/mod.rs b/src/board/mod.rs
index 61327eb..19c25ac 100644
--- a/src/board/mod.rs
+++ b/src/board/mod.rs
@@ -1,4 +1,4 @@
-use rand::Rng;
+use rand::{rngs::StdRng,SeedableRng,Rng};
use crate::{bitboard::{Bitboard, serialize_bitboard, bitscan, pop_count}, moves::{Move, MoveKind}, attacks::Attacks, square::Square};
use self::ttable::{TranspositionTable, TTABLE_SIZE};
@@ -126,7 +126,7 @@ impl Board {
}
}
- let mut rng = rand::thread_rng();
+ let mut rng = StdRng::seed_from_u64(228);
let zobrist_seed = [(); 781].map(|_| rng.gen());
let mut board = Self {