STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
anonymous_namespace{test_board_clock_sync.cpp}::Lcg Struct Reference

Deterministic LCG so jitter sequences are reproducible. More...

Public Member Functions

 Lcg (uint64_t seed)
uint64_t next ()
uint64_t below (uint64_t n)

Public Attributes

uint64_t s

Detailed Description

Deterministic LCG so jitter sequences are reproducible.

Definition at line 60 of file test_board_clock_sync.cpp.

Constructor & Destructor Documentation

◆ Lcg()

anonymous_namespace{test_board_clock_sync.cpp}::Lcg::Lcg ( uint64_t seed)
inlineexplicit

Definition at line 62 of file test_board_clock_sync.cpp.

References s.

Member Function Documentation

◆ below()

uint64_t anonymous_namespace{test_board_clock_sync.cpp}::Lcg::below ( uint64_t n)
inline

◆ next()

uint64_t anonymous_namespace{test_board_clock_sync.cpp}::Lcg::next ( )
inline

Definition at line 64 of file test_board_clock_sync.cpp.

References s.

Referenced by below().

Member Data Documentation

◆ s

uint64_t anonymous_namespace{test_board_clock_sync.cpp}::Lcg::s

The documentation for this struct was generated from the following file: