From 5c64e418f6daab1723e45500d1807dfeea0fc6db Mon Sep 17 00:00:00 2001 From: Clement Jamin Date: Thu, 14 Apr 2016 14:49:11 +0200 Subject: [PATCH] Add a note about CGAL::Random not being fully thread-safe --- Generator/doc/Generator/CGAL/Random.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Generator/doc/Generator/CGAL/Random.h b/Generator/doc/Generator/CGAL/Random.h index 29763c3e19e..47b3b876833 100644 --- a/Generator/doc/Generator/CGAL/Random.h +++ b/Generator/doc/Generator/CGAL/Random.h @@ -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 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} We use the boost random library function `boost::rand48` to generate the random