Pass random instance to GeneratorOnObject in Generic_random_point_generator for consistency (#8420)

## Summary of Changes


[sample_triangle_mesh](https://doc.cgal.org/latest/Polygon_mesh_processing/group__PMP__distance__grp.html#ga6307a4504382c46dc3b0e578ca1f7a3b)
was passed a random seed but did not produce stable results.

Pass random instance to GeneratorOnObject in
Generic_random_point_generator for consistency

## Release Management

* Affected package(s): PMP
This commit is contained in:
Sebastien Loriot 2024-09-03 16:20:40 +02:00 committed by GitHub
commit ce544fbbba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ void Generic_random_point_generator<Id, ObjectFromIdMap, GeneratorOnObject, P>:
);
// generate the points
GeneratorOnObject pointCreator(object_from_id_map(ids[target]));
GeneratorOnObject pointCreator(object_from_id_map(ids[target]), random);
this->d_item = *pointCreator;
}