1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: no-random-device
13 // class random_device;
15 // double entropy() const;
21 #include "test_macros.h"
23 int main(int, char**) {
25 double e
= r
.entropy();
27 assert(e
<= sizeof(typename
std::random_device::result_type
) * CHAR_BIT
);