Searched refs:__token (Results 1 – 2 of 2) sorted by relevance
40 random_device::random_device(const string& __token) in random_device() argument42 if (__token != "/dev/urandom") in random_device()43 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str()); in random_device()58 random_device::random_device(const string& __token)59 : __f_(open(__token.c_str(), O_RDONLY))62 __throw_system_error(errno, ("random_device failed to open " + __token).c_str());95 random_device::random_device(const string& __token)97 if (__token != "/dev/urandom")98 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());101 __throw_system_error(error, ("random device failed to open " + __token).c_str());[all …]
3497 explicit random_device(const string& __token = "/dev/urandom");