Skip to content

Commit

Permalink
fixed deterministic output data
Browse files Browse the repository at this point in the history
  • Loading branch information
Egge21M committed Jan 14, 2025
1 parent b1e190c commit f519e24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model/OutputData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ export class OutputData implements OutputDataLike {
customSplit?: Array<number>
): Array<OutputData> {
const amounts = splitAmount(amount, keyset.keys, customSplit);
return amounts.map((_, i) =>
this.createSingleDeterministicData(amount, seed, (counter = i), keyset.id)
return amounts.map((a, i) =>
this.createSingleDeterministicData(a, seed, counter + i, keyset.id)
);
}

Expand Down

0 comments on commit f519e24

Please sign in to comment.