Home
last modified time | relevance | path

Searched refs:__token (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/libcxx/src/
H A Drandom.cpp43 random_device::random_device(const string& __token) { in random_device() argument
44 if (__token != "/dev/urandom") in random_device()
45 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str()); in random_device()
69 random_device::random_device(const string& __token) : __f_(open(__token.c_str(), O_RDONLY)) {
71 __throw_system_error(errno, ("random_device failed to open " + __token).c_str());
97 random_device::random_device(const string& __token) {
98 if (__token != "/dev/urandom")
99 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());
102 __throw_system_error(error, ("random device failed to open " + __token).c_str());
121 random_device::random_device(const string& __token) {
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__random/
H A Drandom_device.h59 explicit random_device(const string& __token);
61 explicit random_device(const string& __token = "/dev/urandom"); in random_device()