Lines Matching refs:__token
41 random_device::random_device(const string& __token) in random_device() argument
43 if (__token != "/dev/urandom") in random_device()
44 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str()); in random_device()
64 random_device::random_device(const string& __token)
66 if (__token != "/dev/urandom")
67 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());
82 random_device::random_device(const string& __token)
83 : __f_(open(__token.c_str(), O_RDONLY))
86 __throw_system_error(errno, ("random_device failed to open " + __token).c_str());
119 random_device::random_device(const string& __token)
121 if (__token != "/dev/urandom")
122 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());
125 __throw_system_error(error, ("random device failed to open " + __token).c_str());
148 random_device::random_device(const string& __token)
150 if (__token != "/dev/urandom")
151 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());