Use RNG provided by OS

The general consensus is to use random facility provided by OS instead
of using other software random generators.
This commit is contained in:
Chocobo1
2018-04-06 17:43:42 +08:00
parent a70942ed53
commit 81a4f3ced0
2 changed files with 98 additions and 33 deletions

View File

@@ -31,13 +31,12 @@
#define UTILS_RANDOM_H
#include <cstdint>
#include <cstdlib>
namespace Utils
{
namespace Random
{
uint32_t rand(uint32_t min = 0, uint32_t max = UINT32_MAX);
uint32_t rand(const uint32_t min = 0, const uint32_t max = UINT32_MAX);
}
}