Skip to content

Commit

Permalink
Merge pull request #70518 from CleverRaven/clang-tidy-fix
Browse files Browse the repository at this point in the history
Fix clang-tidy warning in rng_get_first_seed()
  • Loading branch information
akrieger authored Dec 30, 2023
2 parents 6ae463e + 6a31775 commit e6f0e51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ double rng_normal( double lo, double hi )

cata_default_random_engine::result_type rng_get_first_seed()
{
static auto seed = std::chrono::high_resolution_clock::now().time_since_epoch().count();
using rep = std::chrono::high_resolution_clock::rep;
static rep seed = std::chrono::high_resolution_clock::now().time_since_epoch().count();
return static_cast<cata_default_random_engine::result_type>( seed );
}

Expand Down

0 comments on commit e6f0e51

Please sign in to comment.