criptic v1
Cosmic Ray Interstellar Propagation Tool using Itô Calculus
Loading...
Searching...
No Matches
Classes | Namespaces
RngThread.H File Reference

Thread-safe random number generator. More...

#include <random>
#include <sstream>
#include <vector>
#include "ThreadVec.H"
#include "Types.H"
#include "../pcg-cpp/pcg_random.hpp"
#include "../IO/ParmParser.H"
#include <omp.h>

Go to the source code of this file.

Classes

class  criptic::RngThread
 Thread-safe random number generator. More...
 

Namespaces

namespace  criptic
 The primary namespace for criptic objects.
 

Detailed Description

Thread-safe random number generator.

This file provides the class RngThread, which is a thread-safe random number generator based on the PCG random number generators. The class handles random numer generation under openMP threads safetly and transparently, so each thread receives an indpendent, uncorrelated stream of random numbers.