Skip to content

Commit a8ee15a

Browse files
committed
chore: cleanup
1 parent 386ebe4 commit a8ee15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simulator/src/main/java/byzzbench/simulator/faults/factories/ByzzFuzzScenarioFaultFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public List<Fault> generateFaults(FaultContext input) {
5050
// Create process faults
5151
for (int i = 1; i <= c; i++) {
5252
int round = rand.nextInt(r) + 1;
53-
String sender = input.getScenario().getFaultyReplicaIds().stream().skip(rand.nextInt(faultyReplicaIds.size())).findFirst().orElseThrow();
53+
String sender = faultyReplicaIds.stream().skip(rand.nextInt(faultyReplicaIds.size())).findFirst().orElseThrow();
5454
Set<String> recipientIds = SetSubsets.getRandomNonEmptySubset(replicaIds);
5555

5656
// generate process fault

0 commit comments

Comments
 (0)