Cast so that it compiles with older boost versions

This commit is contained in:
Andreas Fabri 2010-09-09 09:52:00 +00:00
parent 9bd507949c
commit 170eca485d
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ Random( )
seed = (unsigned int)s;
// initialize random numbers generator
rng.seed(seed);
rng.seed(static_cast<boost::int32_t>(seed));
random_value = get_int(0, 1<<15);
}
@ -50,7 +50,7 @@ Random( unsigned int seed)
: val(0), seed(seed)
{
// initialize random numbers generator
rng.seed(seed);
rng.seed(static_cast<boost::int32_t>(seed));
random_value = get_int(0, 1<<15);
}