My Project
random.cc
Go to the documentation of this file.
1#include "osl/random.h"
2#include <random>
3#include <time.h>
4unsigned int osl::misc::random()
5{
6 static std::mt19937 mt_random;
7 return mt_random();
8}
9
11{
12 static std::mt19937 mt_random(time(0));
13 return mt_random();
14}
unsigned int time_seeded_random()
Definition random.cc:10
unsigned int random()
Definition random.cc:4