MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / GetInnerState

Method GetInnerState

PanzerChasm/rand.cpp:98–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98uint32_t LongRand::GetInnerState() const
99{
100 uint32_t result;
101 // We assume, that std::linear_congruential_engine is simple struct without pointers.
102 std::memcpy( &result, &generator_, sizeof(Generator) );
103 return result;
104}
105
106void LongRand::SetInnerState( const uint32_t state )
107{

Callers 1

SaveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected