Add a note about CGAL::Random not being fully thread-safe

This commit is contained in:
Clement Jamin 2016-04-14 14:49:11 +02:00
parent de861ad22e
commit 5c64e418f6
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,9 @@ It can be very useful, e.g. for debugging, to reproduce a sequence of
random numbers. This can be done by either initialising with a fixed random numbers. This can be done by either initialising with a fixed
seed, or by using the state functions as described below. seed, or by using the state functions as described below.
\note A `Random` object is not deterministic when used by several threads at
the same time, even if a fixed seed has been chosen.
\cgalHeading{Implementation} \cgalHeading{Implementation}
We use the boost random library function `boost::rand48` to generate the random We use the boost random library function `boost::rand48` to generate the random