mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Lots of stuff
This commit is contained in:
19
PortabilityLayer/RandomNumberGenerator.h
Normal file
19
PortabilityLayer/RandomNumberGenerator.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
#ifndef __PL_RANDOM_NUMBER_GENERATOR_H__
|
||||
#define __PL_RANDOM_NUMBER_GENERATOR_H__
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
class RandomNumberGenerator
|
||||
{
|
||||
public:
|
||||
virtual void Seed(uint32_t seed) = 0;
|
||||
virtual uint32_t GetNextAndAdvance() = 0;
|
||||
|
||||
static RandomNumberGenerator *GetInstance();
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user