mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-30 22:44:21 +01:00
make big joins even less likely
This commit is contained in:
@@ -26,9 +26,9 @@ impl Arbitrary for Create {
|
||||
impl ArbitraryFrom<&Vec<Table>> for FromClause {
|
||||
fn arbitrary_from<R: Rng>(rng: &mut R, tables: &Vec<Table>) -> Self {
|
||||
let num_joins = match rng.gen_range(0..=100) {
|
||||
0..=80 => 0,
|
||||
81..=95 => 1,
|
||||
96..=100 => 2,
|
||||
0..=90 => 0,
|
||||
91..=97 => 1,
|
||||
98..=100 => 2,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user