Skip to content

Commit

Permalink
[issue1082] remove const
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDold committed Feb 2, 2024
1 parent e55e395 commit 8543ab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/search/utils/rng_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ void add_rng_options(plugins::Feature &feature) {
plugins::Bounds("-1", "infinity"));
}

shared_ptr<RandomNumberGenerator> get_rng(
const int seed) {
shared_ptr<RandomNumberGenerator> get_rng(int seed) {
if (seed == -1) {
// Use an arbitrary default seed.
static shared_ptr<utils::RandomNumberGenerator> rng =
Expand Down
2 changes: 1 addition & 1 deletion src/search/utils/rng_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class RandomNumberGenerator;
// Add random_seed option to parser.
extern void add_rng_options(plugins::Feature &feature);

extern std::shared_ptr<RandomNumberGenerator> get_rng(const int seed);
extern std::shared_ptr<RandomNumberGenerator> get_rng(int seed);

/*
Return an RNG based on the given options, which can either be the global
Expand Down

0 comments on commit 8543ab0

Please sign in to comment.