Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
lib
misc
random.cc
Go to the documentation of this file.
1
#include "
osl/misc/random.h
"
2
#include <boost/random/mersenne_twister.hpp>
3
#include <time.h>
4
unsigned
int
osl::misc::random
()
5
{
6
static
boost::mt11213b mt_random;
7
return
mt_random();
8
}
9
10
unsigned
int
osl::misc::time_seeded_random
()
11
{
12
static
boost::mt11213b mt_random(time(0));
13
return
mt_random();
14
}
Generated on Sun Jul 21 2013 13:37:26 by
1.8.4