| /llvm-project-15.0.7/libcxx/src/ |
| H A D | random.cpp | 48 random_device::random_device(const string& __token) in random_device() function in random_device 54 random_device::~random_device() in ~random_device() 71 random_device::random_device(const string&) 75 random_device::~random_device() 87 random_device::random_device(const string& __token) 94 random_device::~random_device() 124 random_device::random_device(const string& __token) 133 random_device::~random_device() 153 random_device::random_device(const string& __token) 159 random_device::~random_device() [all …]
|
| /llvm-project-15.0.7/libcxx/include/__random/ |
| H A D | random_device.h | 26 class _LIBCPP_TYPE_VIS random_device 61 random_device() : random_device("/dev/urandom") {} in random_device() function 62 explicit random_device(const string& __token); 64 explicit random_device(const string& __token = "/dev/urandom"); 66 ~random_device(); 74 random_device(const random_device&) = delete; 75 void operator=(const random_device&) = delete;
|
| /llvm-project-15.0.7/libcxx/test/std/numerics/rand/rand.device/ |
| H A D | ctor.pass.cpp | 46 std::random_device r(token); in check_random_device_valid() 52 std::random_device r(token); in check_random_device_invalid() 63 std::random_device r; in main() 100 std::random_device r; in main() 105 static_assert(test_convertible<std::random_device>(), ""); in main()
|
| H A D | eval.pass.cpp | 26 std::random_device r; in main() 27 std::random_device::result_type e = r(); in main() 35 std::random_device r("/dev/null"); in main()
|
| H A D | entropy.pass.cpp | 24 std::random_device r; in main() 27 assert(e <= sizeof(typename std::random_device::result_type) * CHAR_BIT); in main()
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/modernize/ |
| H A D | replace-random-shuffle.rst | 24 std::shuffle(vec.begin(), vec.end(), std::mt19937(std::random_device()())); 28 One thing to be aware of here is that ``std::random_device`` is quite expensive to initialize. So i… 36 std::random_device device;
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cert/ |
| H A D | msc51-cpp.cpp | 60 struct random_device { struct 61 random_device(); 198 std::random_device dev; in g()
|
| /llvm-project-15.0.7/libcxx/test/libcxx/numerics/rand/rand.device/ |
| H A D | has-no-random-device.verify.cpp | 17 std::random_device d; // expected-error {{no type named 'random_device' in namespace 'std'}} in main()
|
| /llvm-project-15.0.7/clang/test/Modules/Inputs/PR20786/ |
| H A D | random.h | 8 struct random_device { struct
|
| /llvm-project-15.0.7/libcxx/benchmarks/algorithms/ |
| H A D | lower_bound.bench.cpp | 21 mutable std::mt19937_64 rng { std::random_device{}() };
|
| H A D | common.h | 153 std::random_device R; in sortValues()
|
| /llvm-project-15.0.7/libcxx/benchmarks/ |
| H A D | random.bench.cpp | 23 std::random_device rd; in BM_SeedSeq_Generate()
|
| H A D | GenerateInput.h | 28 static std::default_random_engine RandEngine(std::random_device{}()); in getRandomEngine()
|
| H A D | formatter_float.bench.cpp | 85 std::random_device seed; in make_data()
|
| H A D | ordered_set.bench.cpp | 38 std::random_device R; in sortKeysBy()
|
| /llvm-project-15.0.7/lldb/test/Shell/ExecControl/StopHook/Inputs/ |
| H A D | stop-hook-threads.cpp | 7 std::default_random_engine g_random_engine{std::random_device{}()};
|
| /llvm-project-15.0.7/llvm/tools/bugpoint/ |
| H A D | FindBugs.cpp | 38 std::mt19937 randomness(std::random_device{}()); in runManyPasses()
|
| /llvm-project-15.0.7/lldb/test/API/python_api/watchpoint/watchlocation/ |
| H A D | main.cpp | 7 std::default_random_engine g_random_engine{std::random_device{}()};
|
| /llvm-project-15.0.7/lldb/test/API/commands/watchpoints/hello_watchlocation/ |
| H A D | main.cpp | 7 std::default_random_engine g_random_engine{std::random_device{}()};
|
| /llvm-project-15.0.7/llvm/unittests/Object/ |
| H A D | OffloadingTest.cpp | 12 std::mt19937 Rng(std::random_device{}()); in TEST()
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | __config | 122 // std::random_device holds some state when it uses an implementation that gets 125 // std::random_device, one needs to retain the same object layout to remain ABI 343 // Libc++ supports various implementations of std::random_device. 350 // inside `std::random_device`. 356 // When this option is used, the token passed to `std::random_device`'s 361 // When this option is used, the token passed to `std::random_device`'s 367 // When this option is used, the token passed to `std::random_device`'s 374 // When this option is used, the token passed to `std::random_device`'s 379 // When this option is used, the token passed to `std::random_device`'s
|
| H A D | random | 386 class random_device 397 explicit random_device(const string& token = implementation-defined); // before C++20 398 random_device() : random_device(implementation-defined) {} // C++20 399 explicit random_device(const string& token); // C++20 408 random_device(const random_device& ) = delete; 409 void operator=(const random_device& ) = delete; 1709 #include <__random/random_device.h>
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | LockFileManager.cpp | 307 std::random_device Device; in waitForUnlock()
|
| /llvm-project-15.0.7/libcxx/docs/DesignDocs/ |
| H A D | UnspecifiedBehaviorRandomization.rst | 48 static ``std::random_device`` for seeding the random number generator. This
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/ |
| H A D | secondary_test.cpp | 74 std::shuffle(V.begin(), V.end(), std::mt19937(std::random_device()())); in testSecondaryBasic()
|