diff options
author | James Wahlin <james.wahlin@mongodb.com> | 2019-10-02 14:48:40 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-02 14:48:40 +0000 |
commit | a40b196bd3cecd0b66a6323f57e6f08efe0af392 (patch) | |
tree | 32ffa94f852e91e2b5d4cac3ea8728998b3837e0 /src/mongo/tools/mongobridge_options.cpp | |
parent | 3175a30264d26b31309e9a4abfb69d9f14136702 (diff) | |
download | mongo-a40b196bd3cecd0b66a6323f57e6f08efe0af392.tar.gz |
Revert "SERVER-43641 upgrade random.h"
This reverts commit 96da177c6ae7b7ed0f29983ad033d8a59524b0b2.
Diffstat (limited to 'src/mongo/tools/mongobridge_options.cpp')
-rw-r--r-- | src/mongo/tools/mongobridge_options.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/tools/mongobridge_options.cpp b/src/mongo/tools/mongobridge_options.cpp index 81a116df714..79d27417659 100644 --- a/src/mongo/tools/mongobridge_options.cpp +++ b/src/mongo/tools/mongobridge_options.cpp @@ -70,7 +70,8 @@ Status storeMongoBridgeOptions(const moe::Environment& params, } if (!params.count("seed")) { - mongoBridgeGlobalParams.seed = SecureRandom().nextInt64(); + std::unique_ptr<SecureRandom> seedSource{SecureRandom::create()}; + mongoBridgeGlobalParams.seed = seedSource->nextInt64(); } else { mongoBridgeGlobalParams.seed = static_cast<int64_t>(params["seed"].as<long>()); } |