aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_random_device.cpp
blob: 2a53975647acf87ceda349e3f391363ea4f6fd94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <random>
#include <iostream>
#include <exception>

auto main()
  -> int
try
{
  std::random_device rd;
  std::cout << "random was read" << "\n";
}
catch( const std::exception& e )
{
  std::cerr << e.what();
}