Lines Matching refs:__token
42 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")
68 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());
83 random_device::random_device(const string& __token)
84 : __f_(open(__token.c_str(), O_RDONLY))
87 __throw_system_error(errno, ("random_device failed to open " + __token).c_str());
120 random_device::random_device(const string& __token)
122 if (__token != "/dev/urandom")
123 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());
126 __throw_system_error(error, ("random device failed to open " + __token).c_str());
149 random_device::random_device(const string& __token)
151 if (__token != "/dev/urandom")
152 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());