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