HiPipe
0.7.0
C++17 data pipeline with Python bindings.
hipipe
core
utility
random.hpp
1
/****************************************************************************
2
* hipipe library
3
* Copyright (c) 2017, Cognexa Solutions s.r.o.
4
* Copyright (c) 2018, Iterait a.s.
5
* Author(s) Filip Matzner
6
*
7
* This file is distributed under the MIT License.
8
* See the accompanying file LICENSE.txt for the complete license agreement.
9
****************************************************************************/
11
12
#ifndef HIPIPE_CORE_UTILITY_RANDOM_HPP
13
#define HIPIPE_CORE_UTILITY_RANDOM_HPP
14
15
#include <random>
16
17
namespace
hipipe::utility {
18
21
static
thread_local std::mt19937
random_generator
{std::random_device{}()};
22
23
}
// namespace hipipe::utility
24
#endif
hipipe::utility::random_generator
static thread_local std::mt19937 random_generator
Thread local pseudo-random number generator seeded by std::random_device.
Definition:
random.hpp:20
Generated by
1.8.16