Lines Matching refs:__token
46 random_device::random_device(const string& __token) in random_device() argument
48 if (__token != "/dev/urandom") in random_device()
49 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str()); in random_device()
69 random_device::random_device(const string& __token)
71 if (__token != "/dev/urandom")
72 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());
87 random_device::random_device(const string& __token)
88 : __f_(open(__token.c_str(), O_RDONLY))
91 __throw_system_error(errno, ("random_device failed to open " + __token).c_str());
124 random_device::random_device(const string& __token)
126 if (__token != "/dev/urandom")
127 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());
130 __throw_system_error(error, ("random device failed to open " + __token).c_str());
153 random_device::random_device(const string& __token)
155 if (__token != "/dev/urandom")
156 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());