Home
last modified time | relevance | path

Searched refs:__token (Results 1 – 2 of 2) sorted by relevance

/external/libcxx/src/
Drandom.cpp38 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());
[all …]
/external/libcxx/include/
Drandom3495 explicit random_device(const string& __token = "/dev/urandom");