Skip to content

Commit ca4abc3

Browse files
michielp1807folkertdev
authored andcommitted
Make nb_samples variable
1 parent 31acd5a commit ca4abc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fuzz/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impl arbitrary::Arbitrary<'_> for ArbitrarySamples {
1717

1818
let dict_size = max(src.len() / 8, 1024);
1919
let total_sample_size = dict_size * 11;
20-
let nb_samples = 100;
20+
let nb_samples = u.int_in_range(1..=100)?;
2121

2222
// generate random samples from src
2323
let mut samples = Vec::with_capacity(total_sample_size);

0 commit comments

Comments
 (0)