summaryrefslogtreecommitdiff
path: root/src/mongo/tools/mongobridge_options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/tools/mongobridge_options.cpp')
-rw-r--r--src/mongo/tools/mongobridge_options.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/tools/mongobridge_options.cpp b/src/mongo/tools/mongobridge_options.cpp
index 79d27417659..81a116df714 100644
--- a/src/mongo/tools/mongobridge_options.cpp
+++ b/src/mongo/tools/mongobridge_options.cpp
@@ -70,8 +70,7 @@ Status storeMongoBridgeOptions(const moe::Environment& params,
}
if (!params.count("seed")) {
- std::unique_ptr<SecureRandom> seedSource{SecureRandom::create()};
- mongoBridgeGlobalParams.seed = seedSource->nextInt64();
+ mongoBridgeGlobalParams.seed = SecureRandom().nextInt64();
} else {
mongoBridgeGlobalParams.seed = static_cast<int64_t>(params["seed"].as<long>());
}