Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/libc++/src/
H A Drandom.cpp42 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()
65 random_device::random_device(const string& __token)
67 if (__token != "/dev/urandom")
83 random_device::random_device(const string& __token)
84 : __f_(open(__token.c_str(), O_RDONLY))
120 random_device::random_device(const string& __token)
122 if (__token != "/dev/urandom")
149 random_device::random_device(const string& __token)
[all …]
/freebsd-12.1/contrib/libstdc++/include/tr1/
H A Drandom1421 random_device(const std::string& __token = "/dev/urandom")
1423 if ((__token != "/dev/urandom" && __token != "/dev/random")
1424 || !(_M_file = std::fopen(__token.c_str(), "rb")))
1435 random_device(const std::string& __token = "mt19937")
1436 : _M_mt(_M_strtoul(__token)) { }
/freebsd-12.1/contrib/libc++/include/
H A Drandom3500 explicit random_device(const string& __token = "/dev/urandom");