|
|
@ -57,10 +57,11 @@ JSDescription JSDescription::Randomized( |
|
|
|
// Randomize the order of the inputs and outputs
|
|
|
|
inputMap = {0, 1}; |
|
|
|
outputMap = {0, 1}; |
|
|
|
if (gen) { |
|
|
|
MappedShuffle(inputs.begin(), inputMap.begin(), ZC_NUM_JS_INPUTS, gen); |
|
|
|
MappedShuffle(outputs.begin(), outputMap.begin(), ZC_NUM_JS_OUTPUTS, gen); |
|
|
|
} |
|
|
|
|
|
|
|
assert(gen); |
|
|
|
|
|
|
|
MappedShuffle(inputs.begin(), inputMap.begin(), ZC_NUM_JS_INPUTS, gen); |
|
|
|
MappedShuffle(outputs.begin(), outputMap.begin(), ZC_NUM_JS_OUTPUTS, gen); |
|
|
|
|
|
|
|
return JSDescription( |
|
|
|
params, pubKeyHash, anchor, inputs, outputs, |
|
|
|