[F] Port fix #383 to rust

This commit is contained in:
Azalea 2025-01-18 16:51:15 -05:00
parent 211beb7b6a
commit f38b754783

View file

@ -831,6 +831,7 @@ fn create_config(
let preset_index_permutations: IndexSet<Vec<PresetIndexedColor>> = preset_indices let preset_index_permutations: IndexSet<Vec<PresetIndexedColor>> = preset_indices
.into_iter() .into_iter()
.permutations(slots.len()) .permutations(slots.len())
.take(1000)
.collect(); .collect();
let random_count = u16::from(ascii_per_row) let random_count = u16::from(ascii_per_row)
.checked_mul(u16::from(ascii_rows)) .checked_mul(u16::from(ascii_rows))