From 24616e85364fe10d3a3bf8c86154cd0f3a1147f4 Mon Sep 17 00:00:00 2001
From: Ewen Smith <ewens@student.unimelb.edu.au>
Date: Fri, 23 Oct 2020 11:31:04 +1100
Subject: [PATCH] Line Error back to 1%

---
 fuzzer/Fuzzer.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fuzzer/Fuzzer.java b/fuzzer/Fuzzer.java
index e792b2e..62171cf 100644
--- a/fuzzer/Fuzzer.java
+++ b/fuzzer/Fuzzer.java
@@ -22,7 +22,7 @@ public class Fuzzer {
     // The percentage of inputs that will be incorrect
     private static final int INPUT_ERROR_PERCENTAGE = 5;
     // The percentage of instructions that will be incorrect
-    private static final int LINE_ERROR_PERCENTAGE = 2;
+    private static final int LINE_ERROR_PERCENTAGE = 1;
     // Limit on generation of inputs
     private static final int NUMBER_TO_GENERATE = 10;
     // Instruction number range for each input
@@ -242,7 +242,7 @@ public class Fuzzer {
         } else {
             while (counter < numInstructions) {
                 Instruction newInstr;
-                if (rand.nextInt(1000) < LINE_ERROR_PERCENTAGE){
+                if (rand.nextInt(100) < LINE_ERROR_PERCENTAGE){
                     newInstr = Instruction.getRandomInstruction(2, instructionStack, pathwayProb);
                     result.append(completeInstruction(false, newInstr, longVarNames));
                     if (dynamicProb) {
-- 
GitLab