You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
435 B
21 lines
435 B
/** |
|
* @file random.hpp |
|
* |
|
* Contains convenience functions for random number generation |
|
* |
|
* This includes specific engine/distribution functions for logic that needs to be compatible with the base game. |
|
*/ |
|
#pragma once |
|
|
|
#include <cstdint> |
|
|
|
namespace devilution |
|
{ |
|
|
|
void SetRndSeed(uint32_t s); |
|
int32_t AdvanceRndSeed(); |
|
int32_t GetRndSeed(); |
|
uint32_t GetLCGEngineState(); |
|
int32_t GenerateRnd(int32_t v); |
|
|
|
} // namespace devilution
|
|
|