1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 // UNSUPPORTED: libcpp-has-no-random-device 10 11 // <random> 12 13 // class random_device; 14 15 // double entropy() const; 16 17 #include <random> 18 #include <cassert> 19 20 #include "test_macros.h" 21 22 int main(int, char**) 23 { 24 std::random_device r; 25 double e = r.entropy(); 26 ((void)e); // Prevent unused warning 27 28 return 0; 29 } 30