1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // class random_device;
14 // result_type operator()();
19 #include "test_macros.h"
25 std::random_device::result_type e = r();
26 ((void)e); // Prevent unused warning
29 #ifndef TEST_HAS_NO_EXCEPTIONS
32 std::random_device r("/dev/null");
36 catch (const std::system_error&)