Skip to content

Commit

Permalink
accommodate new random generator
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Schore <mike.schore@gmail.com>
  • Loading branch information
goaway committed Jul 14, 2020
1 parent 657dc30 commit beaa324
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion envoy
Submodule envoy updated 353 files
1 change: 1 addition & 0 deletions library/common/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ envoy_cc_library(
hdrs = ["envoy_mobile_main_common.h"],
repository = "@envoy",
deps = [
"@envoy//source/common/common:random_generator_lib",
"@envoy//source/common/runtime:runtime_lib",
"@envoy//source/exe:envoy_common_lib",
"@envoy//source/exe:envoy_main_common_lib",
Expand Down
3 changes: 2 additions & 1 deletion library/common/envoy_mobile_main_common.cc
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#include "library/common/envoy_mobile_main_common.h"

#include "common/common/random_generator.h"
#include "common/runtime/runtime_impl.h"

namespace Envoy {

MobileMainCommon::MobileMainCommon(int argc, const char* const* argv)
: options_(argc, argv, &MainCommon::hotRestartVersion, spdlog::level::info),
base_(options_, real_time_system_, default_listener_hooks_, prod_component_factory_,
std::make_unique<Runtime::RandomGeneratorImpl>(), platform_impl_.threadFactory(),
std::make_unique<Random::RandomGeneratorImpl>(), platform_impl_.threadFactory(),
platform_impl_.fileSystem(), nullptr) {
// Disabling signal handling in the options makes it so that the server's event dispatcher _does
// not_ listen for termination signals such as SIGTERM, SIGINT, etc
Expand Down

0 comments on commit beaa324

Please sign in to comment.