Lines Matching refs:__token
38 random_device::random_device(const string& __token) in random_device() argument
40 if (__token != "/dev/urandom") in random_device()
41 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str()); in random_device()
56 random_device::random_device(const string& __token)
57 : __f_(open(__token.c_str(), O_RDONLY))
60 __throw_system_error(errno, ("random_device failed to open " + __token).c_str());
93 random_device::random_device(const string& __token)
95 if (__token != "/dev/urandom")
96 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());
99 __throw_system_error(error, ("random device failed to open " + __token).c_str());
122 random_device::random_device(const string& __token)
124 if (__token != "/dev/urandom")
125 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());