diff options
Diffstat (limited to 'libcxx/test/numerics/rand/rand.device/entropy.pass.cpp')
-rw-r--r-- | libcxx/test/numerics/rand/rand.device/entropy.pass.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libcxx/test/numerics/rand/rand.device/entropy.pass.cpp b/libcxx/test/numerics/rand/rand.device/entropy.pass.cpp new file mode 100644 index 00000000000..70c7ae32d21 --- /dev/null +++ b/libcxx/test/numerics/rand/rand.device/entropy.pass.cpp @@ -0,0 +1,24 @@ +//===----------------------------------------------------------------------===// +// +// ΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚThe LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// <random> + +// class random_device; + +// double entropy() const; + +#include <random> +#include <cassert> + + +int main() +{ + std::random_device r; + double e = r.entropy(); +} |