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/db/storage | |
parent | 3175a30264d26b31309e9a4abfb69d9f14136702 (diff) | |
download | mongo-a40b196bd3cecd0b66a6323f57e6f08efe0af392.tar.gz |
Revert "SERVER-43641 upgrade random.h"
This reverts commit 96da177c6ae7b7ed0f29983ad033d8a59524b0b2.
Diffstat (limited to 'src/mongo/db/storage')
-rw-r--r-- | src/mongo/db/storage/durable_catalog_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/durable_catalog_impl.cpp b/src/mongo/db/storage/durable_catalog_impl.cpp index 0189a8d22b1..0bc79d049ba 100644 --- a/src/mongo/db/storage/durable_catalog_impl.cpp +++ b/src/mongo/db/storage/durable_catalog_impl.cpp @@ -397,7 +397,7 @@ DurableCatalogImpl::~DurableCatalogImpl() { } std::string DurableCatalogImpl::_newRand() { - return str::stream() << SecureRandom().nextInt64(); + return str::stream() << std::unique_ptr<SecureRandom>(SecureRandom::create())->nextInt64(); } bool DurableCatalogImpl::_hasEntryCollidingWithRand() const { |