Skip to content

Commit

Permalink
fix(cover-wall): Cover art wall is not "random" enough
Browse files Browse the repository at this point in the history
  • Loading branch information
Losses committed Dec 31, 2024
1 parent 95fe7b4 commit 326ab43
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ List<List<RandomGridPlacement>> generateTilesOfSize(
if (occupied[i]) continue;

double randomValue1 = stringToDouble('$gridKey-$seed');
double randomValue2 = stringToDouble('$gridKey-i-$seed');
double randomValue2 = stringToDouble('$gridKey-i-${seed + 1}');
int coverIndex = (randomValue2 * (nImages - 1)).round();

int maxSize = maxRandomGridConfigSize;
Expand Down Expand Up @@ -95,7 +95,7 @@ List<List<RandomGridPlacement>> generateTilesOfSize(
final int col = i % cols;

final gridKey = '$row-$col';
double randomValue2 = stringToDouble('$gridKey-i-$seed');
double randomValue2 = stringToDouble('$gridKey-i-${seed + 8}');
int coverIndex = (randomValue2 * (nImages - 1)).round();

occupied[i] = true;
Expand Down

0 comments on commit 326ab43

Please sign in to comment.