diff --git a/tools/db_stress.cc b/tools/db_stress.cc index 63d18efae..b2d6044cc 100644 --- a/tools/db_stress.cc +++ b/tools/db_stress.cc @@ -2595,7 +2595,7 @@ class StressTest { // after a crash, rollback to commit recovered transactions std::vector trans; txn_db_->GetAllPreparedTransactions(&trans); - Random rand(FLAGS_seed); + Random rand(static_cast(FLAGS_seed)); for (auto txn : trans) { if (rand.OneIn(2)) { s = txn->Commit();