mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Apply modernize-use-nullptr.
This commit is contained in:
parent
82f57f0465
commit
616fd8df1e
@ -187,7 +187,7 @@ test_suite* init_unit_test_suite( int /*argc*/, char* /*argv*/[] )
|
|||||||
if (solidity::test::CommonOptions::get().disableSMT)
|
if (solidity::test::CommonOptions::get().disableSMT)
|
||||||
removeTestSuite("SMTChecker");
|
removeTestSuite("SMTChecker");
|
||||||
|
|
||||||
return 0;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
// BOOST_TEST_DYN_LINK should be defined if user want to link against shared boost test library
|
// BOOST_TEST_DYN_LINK should be defined if user want to link against shared boost test library
|
||||||
|
@ -52,5 +52,5 @@ uint32_t SimulationRNG::generateSeed()
|
|||||||
// This is not a secure way to seed the generator but it's good enough for simulation purposes.
|
// This is not a secure way to seed the generator but it's good enough for simulation purposes.
|
||||||
// The only thing that matters for us is that the sequence is different on each run and that
|
// The only thing that matters for us is that the sequence is different on each run and that
|
||||||
// it fits the expected distribution. It does not have to be 100% unpredictable.
|
// it fits the expected distribution. It does not have to be 100% unpredictable.
|
||||||
return time(0);
|
return time(nullptr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user