Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
random_device.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <websocketpp/common/stdint.hpp>
#include <websocketpp/random/random_device.hpp>
#include <websocketpp/concurrency/none.hpp>
Include dependency graph for random_device.cpp:

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   random_device
 

Functions

 BOOST_AUTO_TEST_CASE (compiles)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   random_device

Definition at line 28 of file random_device.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( compiles )

Definition at line 37 of file random_device.cpp.

37 {
39
40 bool e = false;
41
42 try {
43 int32_t foo = rng();
44 std::cout << foo << std::endl;
45 } catch (...) {
46 e = true;
47 }
48
49 BOOST_CHECK( e == false );
50}
Thread safe non-deterministic random integer generator.
std::mt19937 & rng()
signed int int32_t
Definition stdint.h:123