Home
last modified time | relevance | path

Searched refs:random_device (Results 1 – 25 of 42) sorted by relevance

12

/llvm-project-15.0.7/libcxx/src/
H A Drandom.cpp48 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 Drandom_device.h26 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 Dctor.pass.cpp46 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 Deval.pass.cpp26 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 Dentropy.pass.cpp24 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 Dreplace-random-shuffle.rst24 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 Dmsc51-cpp.cpp60 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 Dhas-no-random-device.verify.cpp17 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 Drandom.h8 struct random_device { struct
/llvm-project-15.0.7/libcxx/benchmarks/algorithms/
H A Dlower_bound.bench.cpp21 mutable std::mt19937_64 rng { std::random_device{}() };
H A Dcommon.h153 std::random_device R; in sortValues()
/llvm-project-15.0.7/libcxx/benchmarks/
H A Drandom.bench.cpp23 std::random_device rd; in BM_SeedSeq_Generate()
H A DGenerateInput.h28 static std::default_random_engine RandEngine(std::random_device{}()); in getRandomEngine()
H A Dformatter_float.bench.cpp85 std::random_device seed; in make_data()
H A Dordered_set.bench.cpp38 std::random_device R; in sortKeysBy()
/llvm-project-15.0.7/lldb/test/Shell/ExecControl/StopHook/Inputs/
H A Dstop-hook-threads.cpp7 std::default_random_engine g_random_engine{std::random_device{}()};
/llvm-project-15.0.7/llvm/tools/bugpoint/
H A DFindBugs.cpp38 std::mt19937 randomness(std::random_device{}()); in runManyPasses()
/llvm-project-15.0.7/lldb/test/API/python_api/watchpoint/watchlocation/
H A Dmain.cpp7 std::default_random_engine g_random_engine{std::random_device{}()};
/llvm-project-15.0.7/lldb/test/API/commands/watchpoints/hello_watchlocation/
H A Dmain.cpp7 std::default_random_engine g_random_engine{std::random_device{}()};
/llvm-project-15.0.7/llvm/unittests/Object/
H A DOffloadingTest.cpp12 std::mt19937 Rng(std::random_device{}()); in TEST()
/llvm-project-15.0.7/libcxx/include/
H A D__config122 // 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 Drandom386 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 DLockFileManager.cpp307 std::random_device Device; in waitForUnlock()
/llvm-project-15.0.7/libcxx/docs/DesignDocs/
H A DUnspecifiedBehaviorRandomization.rst48 static ``std::random_device`` for seeding the random number generator. This
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/
H A Dsecondary_test.cpp74 std::shuffle(V.begin(), V.end(), std::mt19937(std::random_device()())); in testSecondaryBasic()

12