CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::ConcRand Struct Reference

Deterministic xorshift64* — same as Phase 1 so seeds behave comparably. More...

Public Member Functions

 ConcRand (uint64 seed)
uint64 next ()
uint32 below (uint32 n)
bool chance (uint32 pct)

Public Attributes

uint64 s

Detailed Description

Deterministic xorshift64* — same as Phase 1 so seeds behave comparably.

Definition at line 75 of file ProcessMemoryConcFuzz.cpp.

Constructor & Destructor Documentation

◆ ConcRand()

cmlabs::ConcRand::ConcRand ( uint64 seed)
inline

Definition at line 77 of file ProcessMemoryConcFuzz.cpp.

References s.

Member Function Documentation

◆ below()

uint32 cmlabs::ConcRand::below ( uint32 n)
inline

◆ chance()

bool cmlabs::ConcRand::chance ( uint32 pct)
inline

Definition at line 80 of file ProcessMemoryConcFuzz.cpp.

References below().

◆ next()

uint64 cmlabs::ConcRand::next ( )
inline

Definition at line 78 of file ProcessMemoryConcFuzz.cpp.

References s.

Referenced by below().

Member Data Documentation

◆ s

uint64 cmlabs::ConcRand::s

Definition at line 76 of file ProcessMemoryConcFuzz.cpp.

Referenced by ConcRand(), and next().


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