mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[yul-phaser] Add --show-seed option and don't print seed by default
This commit is contained in:
parent
3f524ccfe5
commit
e41ea6d25e
@ -581,6 +581,11 @@ Phaser::CommandLineDescription Phaser::buildCommandLineDescription()
|
|||||||
po::bool_switch(),
|
po::bool_switch(),
|
||||||
"Print information about cache size and effectiveness after each round."
|
"Print information about cache size and effectiveness after each round."
|
||||||
)
|
)
|
||||||
|
(
|
||||||
|
"show-seed",
|
||||||
|
po::bool_switch(),
|
||||||
|
"Print the selected random seed."
|
||||||
|
)
|
||||||
;
|
;
|
||||||
keywordDescription.add(outputDescription);
|
keywordDescription.add(outputDescription);
|
||||||
|
|
||||||
@ -622,7 +627,8 @@ void Phaser::initialiseRNG(po::variables_map const& _arguments)
|
|||||||
seed = SimulationRNG::generateSeed();
|
seed = SimulationRNG::generateSeed();
|
||||||
|
|
||||||
SimulationRNG::reset(seed);
|
SimulationRNG::reset(seed);
|
||||||
cout << "Random seed: " << seed << endl;
|
if (_arguments["show-seed"].as<bool>())
|
||||||
|
cout << "Random seed: " << seed << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
AlgorithmRunner::Options Phaser::buildAlgorithmRunnerOptions(po::variables_map const& _arguments)
|
AlgorithmRunner::Options Phaser::buildAlgorithmRunnerOptions(po::variables_map const& _arguments)
|
||||||
|
Loading…
Reference in New Issue
Block a user