diff options
| author | tslil clingman <tslil@posteo.de> | 2022-09-26 23:49:58 +0200 |
|---|---|---|
| committer | tslil clingman <tslil@posteo.de> | 2022-09-27 00:03:10 +0200 |
| commit | e7cd7f1d821b071a83cf003d02f8897523c8a70c (patch) | |
| tree | bad0cdb68e510dfb46c10d1509c97d523dc96da6 /src/layout.rs | |
| parent | 938764a7328eeee747acfa4af07d3b3b91173fc1 (diff) | |
further optimisations
Diffstat (limited to 'src/layout.rs')
| -rw-r--r-- | src/layout.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout.rs b/src/layout.rs index fe853ad..2650a51 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -22,7 +22,7 @@ impl Prelayout { let mut standard_columns = pl.standard_columns.clone(); let mut index_columns = pl.index_columns.clone(); - let mut count = rng.gen_range(1..=NUM_KEYS / 2); + let mut count = rng.gen_range(1..=NUM_KEYS - 1); while count > 0 { let source_index: bool = rng.gen(); let target_index: bool = rng.gen(); |
