Skip to content

Commit

Permalink
chore: add fuzz seed trace (#2584)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Aug 3, 2022
1 parent 3df9536 commit f0a7315
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/src/cmd/forge/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ pub fn custom_run(args: TestArgs, include_fuzz_tests: bool) -> eyre::Result<Test
let fuzzer = if let Some(ref fuzz_seed) = config.fuzz_seed {
let mut bytes: [u8; 32] = [0; 32];
fuzz_seed.to_big_endian(&mut bytes);
trace!(target: "forge::test", "executing test command");
let rng = TestRng::from_seed(RngAlgorithm::ChaCha, &bytes);
proptest::test_runner::TestRunner::new_with_rng(cfg, rng)
} else {
Expand Down

0 comments on commit f0a7315

Please sign in to comment.