ROOT-Sim core  3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
random.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include <core/core.h>
14 
15 #include <stdint.h>
16 
18 struct rng_ctx {
20  uint64_t state[4];
21 };
22 
23 extern void random_lib_lp_init(lp_id_t lp_id, struct rng_ctx *rng_ctx);
uint64_t lp_id_t
Logical Process ID data type.
Definition: ROOT-Sim.h:33
Core ROOT-Sim functionalities.
void random_lib_lp_init(lp_id_t lp_id, struct rng_ctx *rng_ctx)
Initialize the rollbackable RNG library of the current LP.
Definition: random.c:27
The container for the pseudo random number generator context.
Definition: random.h:18
uint64_t state[4]
The current PRNG state.
Definition: random.h:20