summaryrefslogtreecommitdiff
path: root/src/mongo/platform/random.cpp
AgeCommit message (Collapse)Author
2023-07-01SERVER-77049 SERVER-77050 IWYU automated changes up to 1.0Daniel Moody
2023-01-20SERVER-72935 switch c stdlib headers to cpp compat stdlib headersDaniel Moody
2022-05-06SERVER-66203 move MONGO_LOGV2_DEFAULT_COMPONENT defs below includesBilly Donahue
2021-03-09SERVER-55041 Benchmark UUID generation and increase SecureRandom buffer sizeBen Caimano
2020-04-26SERVER-47735 change mongo source over to logv2Billy Donahue
- Remove several legacy logger/ files - Convert all MONGO_LOG_DEFAULT_COMPONENT to the LOGV2 version. - Globally replace logger::{LogSeverity,LogComponent} => logv2::
2020-02-21SERVER-45567 removing util/log.h where I canGabriel Russell
o converting some log lines that were missed o fixing some missing includes create mode 100644 src/mongo/transport/ismaster_metrics.cpp
2020-02-20SERVER-45869 more automatically converted structuredGabriel Russell
2019-10-09SERVER-43641 upgrade random.hBilly Donahue
This reverts commit a40b196bd3cecd0b66a6323f57e6f08efe0af392.
2019-10-02Revert "SERVER-43641 upgrade random.h"James Wahlin
This reverts commit 96da177c6ae7b7ed0f29983ad033d8a59524b0b2.
2019-10-02SERVER-43641 upgrade random.hBilly Donahue
Respecify PseudoRandom and SecureRandom as template instances of a `mongo::RandomBase<Urbg>` (Urbg is a UniformRandomBitGenerator). They will only vary in which algorithm they use for their source bits, and should otherwise support the same exact operations (e.g. `nextCanonicalDouble`). Fix range and stats errors in the implementations of those RandomBase methods, and specify them in terms of the vetted `<random>` facilities. Test uniformity of nextInt32(max), which uses an inappropriate ( x % max) operation. Verify that refactor fixes this issue. Just keep a shared urandom file descriptor open. SecureRandom add fill, remove create, fix callers Obsoletes SERVER-43643 Re: SecureRandom 8kiB buffering
2019-06-10SERVER-39339 Remove `stdx/memory.h`ADAM David Alan Martin
2019-02-13SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue
Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
2018-10-22SERVER-37651 Update header files with new licenseRamon Fernandez
2018-07-17SERVER-36147 Add basic support for targeting emscriptenAndrew Morrow
2017-08-08SERVER-30520 SecureRandom::create() should return a unique_ptrMathias Stearn
2016-06-16SERVER-23103 Repair some bad includesAndrew Morrow
2016-05-28SERVER-23971 Clang-Format codeMark Benvenuto
2015-10-29SERVER-21099: Improve logging in Linux's SecureRandomSpencer Jackson
2015-09-15SERVER-17422 Use BCrypt API for secure random number generation on WindowsAndrew Morrow
2015-08-28SERVER-20121 Use unsigned arithmetic in PsuedoRandomMathias Stearn
2015-08-27SERVER-19182 Integrate storage engine optimizations into $sample stageCharlie Swanson
2015-06-20SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto
2015-03-11SERVER-17552 Use correct OS detection macros, rather than our ownAndrew Morrow
2015-01-15SERVER-1120: OpenBSD/FreeBSD fixesMark Benvenuto
2014-05-16SERVER-13264 Move Apache-licensed files to AGPLIan Whalen
Also update generators.
2012-11-16really fix Windows compile for PseudoRandom (thoroughly tested)Eric Milkie
2012-11-16fix Windows compile for rand_sEric Milkie
2012-11-16use xorshift for PseudoRandom on all platformsEric Milkie
2012-11-13some Random tests and helpersEliot Horowitz
2012-11-13include string.h in random.cpp for strerrorEliot Horowitz
2012-11-13solaris needs stdio.hEliot Horowitz
2012-11-12make a SecureRandom classEliot Horowitz
2012-10-23Fix windows build, reorder includes in random.h to follow our conventions.Andy Schwerin
2012-10-23Introduce mongo/platform/cstdint.h, to get stdint types into the mongo ↵Andy Schwerin
namespace. Pre C++-11, GCC and MSVC put these in different files and namespaces. This header consolidates the logic of finding them.
2012-10-10fix Windows compileTad Marshall
2012-10-10simple Random class to consolidate all random number needsEliot Horowitz