This is a disaster, SCons is annoying the shit out of me, I guess I am going to build...
[ail.git] / source / random.cpp
blob917d6bb74b3bc500e51d195c661141530d903612
1 #include <ail/random.hpp>
2 #include <ail/time.hpp>
4 namespace ail
6 random_algorithm_type prng_algorithm;
7 bool prng_has_been_seeded = false;
9 void seed_check()
11 if(!prng_has_been_seeded)
13 prng_algorithm.seed(static_cast<boost::uint32_t>(milliseconds()));
14 prng_has_been_seeded = true;