Searched refs:__token (Results 1 – 2 of 2) sorted by relevance
38 random_device::random_device(const string& __token) in random_device() argument40 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());[all …]
3495 explicit random_device(const string& __token = "/dev/urandom");