MCPcopy Index your code
hub / github.com/bcoin-org/bcoin / randomProgram

Function randomProgram

scripts/fuzz.js:200–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198}
199
200function randomProgram() {
201 const version = rand(0, 16);
202 const size = rand(2, 41);
203 return Script.fromProgram(version, random.randomBytes(size));
204}
205
206function randomRedeem() {
207 switch (rand(0, 5)) {

Callers 2

randomRedeemFunction · 0.85
randomScriptFunction · 0.85

Calls 2

randFunction · 0.85
fromProgramMethod · 0.45

Tested by

no test coverage detected