Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/libcxx/src/
H A Drandom.cpp44 random_device::random_device(const string& __token) { in random_device() function in random_device
49 random_device::~random_device() {} in ~random_device()
51 unsigned random_device::operator()() { in operator ()()
62 random_device::random_device(const string&) {}
64 random_device::~random_device() {}
66 unsigned random_device::operator()() { return arc4random(); }
70 random_device::random_device(const string& __token) : __f_(open(__token.c_str(), O_RDONLY)) {
75 random_device::~random_device() { close(__f_); }
77 unsigned random_device::operator()() {
98 random_device::random_device(const string& __token) {
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__random/
H A Drandom_device.h26 class _LIBCPP_EXPORTED_FROM_ABI random_device {
58 _LIBCPP_HIDE_FROM_ABI random_device() : random_device("/dev/urandom") {} in random_device() function
59 explicit random_device(const string& __token);
61 explicit random_device(const string& __token = "/dev/urandom");
63 ~random_device();
71 random_device(const random_device&) = delete;
72 void operator=(const random_device&) = delete;
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/__random/
H A Drandom_device.h26 class _LIBCPP_EXPORTED_FROM_ABI random_device {
57 explicit random_device(const string& __token = "/dev/urandom");
58 ~random_device();
66 random_device(const random_device&) = delete;
67 void operator=(const random_device&) = delete;
/freebsd/sys/dev/random/
H A Drandomdev.c97 SYSINIT(random_device, SI_SUB_RANDOM, SI_ORDER_SECOND, random_alg_context_init,
426 DECLARE_MODULE(random_device, randomdev_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
427 MODULE_VERSION(random_device, 1);
428 MODULE_DEPEND(random_device, crypto, 1, 1, 1);
429 MODULE_DEPEND(random_device, random_harvestq, 1, 1, 1);
/freebsd/crypto/openssl/providers/implementations/rands/seeding/
H A Drand_unix.c410 static struct random_device { struct
514 static int check_random_device(struct random_device *rd) in check_random_device()
532 struct random_device *rd = &random_devices[n]; in get_random_device()
561 struct random_device *rd = &random_devices[n]; in close_random_device()
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Drandom.cppm
H A Drandom.inc46 // [rand.device], class random_device
47 using std::random_device;
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DExponentialBackoff.h60 std::random_device RandDev;
/freebsd/contrib/llvm-project/llvm/tools/bugpoint/
H A DFindBugs.cpp38 std::mt19937 randomness(std::random_device{}()); in runManyPasses()
/freebsd/sys/dev/qcom_rnd/
H A Dqcom_rnd.c252 MODULE_DEPEND(qcom_rnd_random, random_device, 1, 1, 1);
/freebsd/contrib/llvm-project/libcxx/include/
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;
1708 # include <__random/random_device.h>
H A D__config296 // Libc++ supports various implementations of std::random_device.
303 // inside `std::random_device`.
309 // When this option is used, the token passed to `std::random_device`'s
314 // When this option is used, the token passed to `std::random_device`'s
320 // When this option is used, the token passed to `std::random_device`'s
327 // When this option is used, the token passed to `std::random_device`'s
332 // When this option is used, the token passed to `std::random_device`'s
H A Dmodule.modulemap.in1836 module random_device { header "__random/random_device.h" }
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/
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;
1705 #include <__cxx03/__random/random_device.h>
H A D__config247 // Libc++ supports various implementations of std::random_device.
254 // inside `std::random_device`.
260 // When this option is used, the token passed to `std::random_device`'s
265 // When this option is used, the token passed to `std::random_device`'s
271 // When this option is used, the token passed to `std::random_device`'s
278 // When this option is used, the token passed to `std::random_device`'s
283 // When this option is used, the token passed to `std::random_device`'s
H A Dmodule.modulemap1679 header "__random/random_device.h"
/freebsd/sys/dev/virtio/random/
H A Dvirtio_random.c108 MODULE_DEPEND(virtio_random, random_device, 1, 1, 1);
/freebsd/sys/crypto/ccp/
H A Dccp.c640 MODULE_DEPEND(ccp, random_device, 1, 1, 1);
/freebsd/lib/libc++/
H A DMakefile1210 C3RND_HEADERS+= random_device.h
1953 RND_HEADERS+= random_device.h
H A Dmodule.modulemap1836 module random_device { header "__random/random_device.h" }
H A Dlibcxx.imp670 { include: [ "<__random/random_device.h>", "private", "<random>", "public" ] },
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSTLExtras.h1601 static unsigned Result(std::random_device{}());
/freebsd/contrib/llvm-project/lld/ELF/
H A DWriter.cpp1069 std::mt19937 g(seed ? seed : std::random_device()()); in maybeShuffle()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/Stdlib/
H A DStdSymbolMap.inc2466 SYMBOL(random_device, std::, <random>)
/freebsd/contrib/bsnmp/tests/
H A Dcatch.hpp7721 static std::random_device entropy; in analyse_samples()