mirror of https://github.com/CGAL/cgal
Cast so that it compiles with older boost versions
This commit is contained in:
parent
9bd507949c
commit
170eca485d
|
|
@ -41,7 +41,7 @@ Random( )
|
||||||
seed = (unsigned int)s;
|
seed = (unsigned int)s;
|
||||||
|
|
||||||
// initialize random numbers generator
|
// initialize random numbers generator
|
||||||
rng.seed(seed);
|
rng.seed(static_cast<boost::int32_t>(seed));
|
||||||
random_value = get_int(0, 1<<15);
|
random_value = get_int(0, 1<<15);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -50,7 +50,7 @@ Random( unsigned int seed)
|
||||||
: val(0), seed(seed)
|
: val(0), seed(seed)
|
||||||
{
|
{
|
||||||
// initialize random numbers generator
|
// initialize random numbers generator
|
||||||
rng.seed(seed);
|
rng.seed(static_cast<boost::int32_t>(seed));
|
||||||
random_value = get_int(0, 1<<15);
|
random_value = get_int(0, 1<<15);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue