Browse Source

RLPTests: sizes

cl-refactor
Dimitry 10 years ago
parent
commit
fb51f3a6fb
  1. 4
      test/fuzzTesting/fuzzHelper.cpp

4
test/fuzzTesting/fuzzHelper.cpp

@ -52,7 +52,7 @@ int RandomCode::recursiveRLP(std::string &_result, int _depth, std::string& _deb
if (_depth > 1) if (_depth > 1)
{ {
//create rlp blocks //create rlp blocks
int size = 2 + randUniIntGen() % 4; int size = 1 + randUniIntGen() % 4;
for (auto i = 0; i < size; i++) for (auto i = 0; i < size; i++)
{ {
std::string blockstr; std::string blockstr;
@ -183,7 +183,7 @@ std::string RandomCode::rndRLPSequence(int _depth, std::string& _debug)
{ {
refreshSeed(); refreshSeed();
std::string hash; std::string hash;
_depth = std::min(std::max(1, _depth), 20); //limit depth to avoid overkill _depth = std::min(std::max(1, _depth), 7); //limit depth to avoid overkill
recursiveRLP(hash, _depth, _debug); recursiveRLP(hash, _depth, _debug);
return hash; return hash;
} }

Loading…
Cancel
Save