26 RNG_SEQ_JOKER_MISPRINT,
27 RNG_SEQ_JOKER_RESERVED_PARKING,
28 RNG_SEQ_JOKER_BUSINESS_CARD,
45 u32 states[RNG_SEQ_MAX];
void rng_update(void)
Accumulates CPU cycles for RNG seed generation, call exaclty once per frame.
void rng_shuffle_seed(void)
Sets a new randomized seed for the RNG using a source of entropy.
u32 rng_get_u32(enum RngSequence key)
Get the next "randomly" generated number in the sequence corresponding to the given type.
void rng_set_seed(u32 seed)
Set the rng seed to the chosen value, and reset the step counter to 0. The seed will be capped at MAX...
RngSequence
Keys to different independent RNG sequences.
void rng_restore(RngInfo info)
Restore RNG info struct in the GameVariables. Sets the seed and restores the state for each independe...
void rng_init(void)
Starts counting CPU cycles, which will be used by rng_shuffle_seed to generate a more random seed....
Information to track and restore RNG state.