summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrtt-module.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/rtt-module.js b/rtt-module.js
index 127507e..b1df281 100755
--- a/rtt-module.js
+++ b/rtt-module.js
@@ -28,7 +28,8 @@ module.exports.fuzz = function(fuzzerInputData) {
return
}
let seed = data.consumeIntegralInRange(1, 2**35-31)
- let scenario = data.pickValue(RULES.scenarios)
+ let scenarios = Array.isArray(RULES.scenarios) ? RULES.scenarios : Object.values(RULES.scenarios).flat()
+ let scenario = data.pickValue(scenarios)
// TODO randomize options
const options = {}